Commit Graph

1608 Commits

Author SHA1 Message Date
Stefan Schmidt 961a1ada0f Manual revert of: commit 07404215a9
combobox: add Multiple selection feature

This exposes problems with name clashes and behaviour change for the legacy API.
Revert for now and we can revisit for 1.19.

Git revert got to confused as this was committed before we merged elm in. I did
the revert manually.
2016-08-11 12:14:07 +02:00
Davide Andreoli 27fc8a0467 Fix the implementation of the "Genlist Reusable Contents" test
I didn't understand well how the reusable mechanism should have be used,
now I do, and the test is not failing anymore :)
2016-08-11 12:07:09 +02:00
Stefan Schmidt 4f840c5feb elm: config: fix API naming to use disabled instead of disable to unify
We use disabled across our APIs so better fix this new one to unify it before
we release. This was introduced in commit 0116e07288

Many thanks to DaveMDS for reporting this!
2016-08-09 16:26:49 +02:00
Davide Andreoli 4711772168 Add a FAILING test for genlist reusable contents
shortly explained in T4319
2016-08-09 15:31:04 +02:00
Vyacheslav Reutskiy a3236f943d edje_pick:set the correct compression for sample
@fix
Fixes T4314
2016-08-09 14:27:47 +03:00
Vyacheslav Reutskiy f2e1cf4261 edje_pick: set the correct file name for copied sample
@fix
2016-08-09 14:27:47 +03:00
Davide Andreoli f0293f9f0f Add a test for elm_gengrid_item_all_contents_unset()
The function is good, and the test works as expected, I have written
this because I have problems in pyefl with this function
2016-08-09 11:59:18 +02:00
Vyacheslav Reutskiy 164d81f124 edje_pick: don't copy dependencies group if they in the import list
If a dependence group in the import list - don't copy it as dependence,
it make group duplicate and make a recurcive load.

@fix
Fixes T4313
2016-08-09 10:17:31 +03:00
Umesh Tanwar 06f4a790e6 elementary_test: Search menu performance optimization.
Summary:
elementary_test search menu is created again and again
at each search query. Here the optimaization is to remember
the menu item and retain them instead of deletion and reuse them.

Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>

Test Plan:
search item in elementary_test and measure the
performace time.

Reviewers: jpeg

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4218

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2016-08-09 15:03:53 +09:00
Jean-Philippe Andre 4f98d6a007 edje_cc: Remove unused variable 'got_hash'
got_hash will always be zero at the point where it's read.

Fixes CID 1261439
2016-08-09 11:05:50 +09:00
Carsten Haitzler 94af40b3b6 evas cserve2 client - treat an invalid size header as fatal
this should make coverity CID 1361430 happy
2016-08-08 14:15:02 +09:00
Carsten Haitzler a71f0ed24b edje_cc - fix inheritance of programs and store channel too in copy
this fixes programs that inherit and play audio on specific channels.
i found that sound worked on single line entries but not multipline
beause single line inherit from multi but didnt copy this program
param - the channel number. this fixes this

@fix
2016-08-06 19:10:24 +09:00
Carsten Haitzler b26bef48f2 evas cserver client tool - handle possible < 0 sized return
this is cserver so its trusted but handle possible < 0 size msg.
address coverity CID1361243
2016-08-06 16:16:19 +09:00
Carsten Haitzler 15e34ffe15 embryo_cc - fix coverity complaint about assert
fix assert using a strance assert syntax and go back to basic asserts.
fix coverity CID 1361224

@fix
2016-08-06 15:41:02 +09:00
Davide Andreoli a3ad7553c5 Simple test case to spot out a bad bug in elm.Entry
The bug is explained in T4296, basically the "changed" signal in elm.Entry is called randomly.
2016-08-05 19:02:19 +02:00
Subhransu Mohanty d458101a41 edje: updated the start index of vector resource from 1 to 0
Reviewers: cedric, jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4205

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-08-03 17:34:57 -07:00
Subhransu Mohanty e077e92372 edje: throw error when vector resource not found.
Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4202
2016-08-01 13:24:34 +09:00
Subhransu Mohanty 7af272d93c edje: Fix handling of polygon and polyline node.
Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4203
2016-08-01 13:23:44 +09:00
Jean-Philippe Andre 523aea45ce tests: Place inline window inside a box
This shows off how to properly use an inline window.
I tried to add extra smarts inside elementary to handle those
inline windows like normal objects... but it led to more bugs.

The only way that makes sense to use this inline window
is to separately treat the image object and the window
itself. Any other approach is too tricky.

See T1973
2016-08-01 10:29:24 +09:00
Vyacheslav Reutskiy 5d9cb39911 edje_pick: copy block 'data'
Copy global data from files. Main resoan for it - elementary.
Elementary needs data "version" for load widget styles.

@fix
2016-07-26 15:30:15 +03:00
Subhransu Mohanty 12e09d2d2a edje: fixed issue with vector part state inheritance.
Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4190
2016-07-26 14:19:59 +09:00
Carsten Haitzler 71cb445b6c elm quicklaunch binary - fix coverity CID 1353607
@fix
2016-07-24 18:44:15 +09:00
perepelits.m 82f62b6234 edje: fix specular color
Summary: We use int from 0 to 255 for color, not float

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: jpeg, artem.popov

Differential Revision: https://phab.enlightenment.org/D4182

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-07-21 12:28:21 -07:00
Cedric BAIL f7af802f4f edje: allow inheritance from an aliased group. 2016-07-21 11:19:44 -07:00
Vyacheslav Reutskiy 026b7cc495 edje_pick: reset alias flag for copied group
edje_pick make copy of whole group, even if group is alias. So if
group was alias need to reset this flag.

@fix
2016-07-21 14:02:46 +03:00
perepelits.m 91314b64e2 edje: fix ambient color
Summary: change specular color to ambient int the function of ambient color

Reviewers: cedric, raster, Hermet

Subscribers: jpeg, artem.popov

Differential Revision: https://phab.enlightenment.org/D4169
2016-07-20 10:42:22 +09:00
Cedric Bail b33b2ddc39 elementary: as screen get bigger, we need more cache to store uncompressed image. 2016-07-19 09:51:13 -07:00
Vyacheslav Reutskiy 711288b2ea edje_pick: copy dependent group
Parts can use enother groups as source, for example textblock. If source
groups does not exist - group is not valid. This patch extend the group
copy process and copy dependend group too.

@fix
2016-07-19 18:31:01 +03:00
Jean-Philippe Andre 3029227fa1 eo: Change eo_override to avoid struct passing and GCC construct
This is a (minor) API & ABI break in Eo.h!

I say minor as eo_override shouldn't be used yet (EO is unstable
and this patch includes all the use cases in EFL).

I'm not very happy about the new form of the macro, but it avoids
two things:
- passing in a struct (valid in C, but never used in EFL)
- using a GCC construct to create structs on the fly

It was inspired by the event array define, but I don't think
we need the runtime memcpy here.

See also:
https://gcc.gnu.org/onlinedocs/gcc/Compound-Literals.html
2016-07-19 17:55:07 +09:00
Jean-Philippe Andre 03ec8204bf tests: Show use of eo_override for custom layout
This requires the previous fix in eo to actually work.
2016-07-18 18:00:26 +09:00
Jee-Yong Um 5a3c015e9e edje: add required attribute in Edje_Part
Summary:
When using EDC written by another person, developer usually
does not need to know all specified parts in EDC but editable
like swallow, text or textblock parts.
The required flag tells whether the part is intended to be used outside EDC.

Reviewers: jpeg, cedric, raster, Hermet

Reviewed By: jpeg, raster

Subscribers: raster, NikaWhite, kimcinoo, jpeg

Differential Revision: https://phab.enlightenment.org/D3579
2016-07-15 16:34:34 +09:00
Carsten Haitzler 9f77c5ab55 Revert "edje_cc: Fix minor coverity defect"
This reverts commit 0106455588.

breaks edje_cc.... :( spin 100% cpu building terminology themes
2016-07-13 20:54:04 +09:00
Jean-Philippe Andre 3d16cdc67e embro_cc: Shut up some coverity warning
CID 1039677 1039678 1039679

The expression's value does not depend on the operands; often,
this represents an inadvertent logic error.

In doarg: An operation with non-constant operands that
computes a result with constant value (CWE-569)

cell is defined as an int, not a long, so it can't be > INT_MAX.
2016-07-13 13:19:01 +09:00
Jean-Philippe Andre bed1e28d85 elm test: Shut up coverity warning
CID 1354839

It was non-sensical as there would be no iterator
if there are no children.
2016-07-13 12:58:43 +09:00
Jean-Philippe Andre 5871593ed1 elm test: Fix non sense check
CID 1353720 1353721
2016-07-13 12:02:20 +09:00
Jean-Philippe Andre 0106455588 edje_cc: Fix minor coverity defect
CID 1261439

An assigned value that is never used may represent unnecessary computation,
an incorrect algorithm, or possibly the need for cleanup or refactoring.

In source_fetch_file: A value assigned to a variable is never used. (CWE-563)

Tested compilation of a few EDC files with no breakage.
2016-07-13 11:57:07 +09:00
Jean-Philippe Andre 82f546fc1f edje_pick: Fix use after free
Fixes CID 1267458 (trying again)
2016-07-13 11:16:33 +09:00
Daniel Hirt c9787e4c38 Ui text: port more functionality to the test
- Make "Sel" button work
  - Make "Ins" button to insert emoticons
2016-07-12 11:01:45 +00:00
Daniel Hirt 113f828b3c Ui text: bring back selection handlers support 2016-07-12 11:01:45 +00:00
Daniel Hirt 2bc943d3bb Ui text: make scroller work 2016-07-12 11:01:45 +00:00
Youngbok Shin 982ef0b9d0 Edje calc: Fix Evas Text width calculation with ellipsis
Summary:
To keep consistency with Evas Textblock part in edje,
text.min has to work logically even if ellipsis is enabled.
If a Text part has minimum width, maximum width and "text.min: 1 X;",
Text part should be expanded until its width reaches to the maximum width.
Then, ellipsis will work. Singleline Textblock is also working like this.
@fix

Reviewers: cedric, herdsman, raster, tasn

Subscribers: Blackmole, z-wony, jpeg

Differential Revision: https://phab.enlightenment.org/D3587
2016-07-12 10:48:17 +09:00
Carsten Haitzler 4329a359dc edje_cc handle theoretical string overflow (not real) shhh coverity
these strings are internal fixed strings so never bigger than buffer,.
but silence coverity to avoid noise. fixes CID 1355588 , 1355589
2016-07-11 22:23:58 +09:00
Umesh Tanwar 9986ac387e embryo_cc: Buffer overflow check.
Summary:
A string is copied to the array '&symbolname[0]' of size 32,
without checking it's length at first at embryo_cc_sc1.c:2101.
So, used assert  to avoid possible overflow.

Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>

Reviewers: Hermet, cedric, raster

Reviewed By: raster

Subscribers: singh.amitesh, jpeg

Differential Revision: https://phab.enlightenment.org/D3602
2016-07-11 18:11:19 +09:00
Youngbok Shin 8e93b88175 edje: update a style when a style is added as class's member
Summary:
If there is no member styles when a text_class is updated,
newly added styles can't be updated.
So, newly added styles as member of text_class should be updated.
@fix

Test Plan:
Test case is included.

1. Run "elementary_test -to "font overlay""
2. Press Next button. Check the font size.
3. Press Prev button.
4. Put font_size as 50
5. Click Apply button.
6. Press Next button. Check the font size is not changed.

Reviewers: cedric, tasn, herdsman, raster

Subscribers: jpeg, z-wony, Blackmole

Differential Revision: https://phab.enlightenment.org/D4125
2016-07-11 13:13:39 +09:00
Carsten Haitzler f7ea9373f6 edje_cc - fix new coverity issue
fix CID 1357395
2016-07-09 11:44:35 +09:00
perepelits.m 52df6171e9 edje_player: create scene in the edje_player if there are some 3D-components
Summary: check if the size of scene is bigger than 0x0 and build 3D scene in the edje_player in this case and use "opengl_x11"

Reviewers: Hermet, jpeg, cedric

Subscribers: NikaWhite, Oleksander, artem.popov, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4041

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-07-08 10:49:49 -07:00
Carsten Haitzler b1d9cf8d8d edje cc mo encoding leak - ensure data is freed when setting up encoding
this should fix CID 1306604
2016-07-08 18:53:11 +09:00
Carsten Haitzler 33880a3d7c elm_prefs_cc - clean up return with added brackets to be clear
it seems coverity gets confused with the sizeof(c) / sizeof(type). add
() hoping it will silence it. this is related to:

CID 1353600 and 1353599
2016-07-08 18:33:02 +09:00
Carsten Haitzler 96958909ba elm_prefs_cc - fix correct struct size calculation
use correct struct type even though previous struct was the same size
and it wasnt an actual bug - but a potential one.
2016-07-08 18:24:06 +09:00
Carsten Haitzler 2ef7d310d0 edje cc - fix leake found by coverity
fixes CID 1355586
2016-07-08 16:00:29 +09:00