platform/upstream/efl.git
8 years agoevas/gl_generic: Recreate texture when native surface image size is changed.
Minkyoung Kim [Tue, 12 Jul 2016 05:11:36 +0000 (14:11 +0900)]
evas/gl_generic: Recreate texture when native surface image size is changed.

Summary:
Now, if image is native, do not recreate texture when image size is changed.
Recreate next native surface set time. So during the time between image_size_set and native_surface_set, native image is fragile. Fix it.

Test Plan: Local Test

Reviewers: spacegrapher, jpeg, wonsik, dkdk, raster

Reviewed By: raster

Subscribers: cedric

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

8 years agoedje: the repeat_events property of swallowed object probably should follow the repea...
Shinwoo Kim [Tue, 12 Jul 2016 01:53:27 +0000 (10:53 +0900)]
edje: the repeat_events property of swallowed object probably should follow the repeat_events property of swallow part object

Summary: Need discussion about the repeat_events property

Test Plan: Swallow an object which has EINA_TRUE repeat_events to a swallow part which has EINA_FALSE repeat_events

Reviewers: Hermet, cedric, raster, jpeg

Reviewed By: raster, jpeg

Subscribers: jaehwan, seoz, woohyun

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

8 years agoEdje calc: Fix Evas Text width calculation with ellipsis
Youngbok Shin [Tue, 12 Jul 2016 01:20:03 +0000 (10:20 +0900)]
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

8 years agoevas: fix work of engine on macOS.
se.osadchy [Mon, 11 Jul 2016 17:54:47 +0000 (10:54 -0700)]
evas: fix work of engine on macOS.

Summary: Update eng_image_free function and check of references.

Reviewers: thiepha, NikaWhite, FurryMyad, raster, cedric

Subscribers: raster, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore-wl2: Fix issue of misleading 'if' statement
Chris Michael [Mon, 11 Jul 2016 15:56:17 +0000 (11:56 -0400)]
ecore-wl2: Fix issue of misleading 'if' statement

Gcc reports that this 'if' statement is misleading due to indentation.
We should only be sending the 'finish' call if the dnd version
supports it, however we should always be sending 'destroy'

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoedje: Fix issue of null pointer dereference
Chris Michael [Mon, 11 Jul 2016 15:19:01 +0000 (11:19 -0400)]
edje: Fix issue of null pointer dereference

Coverity reports that 'text' here is a null pointer dereference so
check for valid 'text' variable before trying to use it.

Fixes Coverity CID1267490

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agodocs: generate proper descriptions for structs and enums
Daniel Kolesa [Mon, 11 Jul 2016 15:03:53 +0000 (16:03 +0100)]
docs: generate proper descriptions for structs and enums

8 years agoCanvas text: fix corner case in range geometry calc
Daniel Hirt [Mon, 11 Jul 2016 16:18:54 +0000 (16:18 +0000)]
Canvas text: fix corner case in range geometry calc

The trivial case of [pos,pos] (i.e. range of length 0) didn't work if there is a
format item in 'pos'.
The condition was fixed to not include such items. The reason it was not
apparent for text items is that these have further handling in the rest of the
code and would've been disposed of.

@fix

8 years agoIf there is situation when server is closed prior to client, the client pointer point...
Prince Kumar Dubey [Mon, 11 Jul 2016 13:29:04 +0000 (22:29 +0900)]
If there is situation when server is closed prior to client, the client pointer pointing to server must be reset and check must be there during client deletion

Summary: During mobile product testing, we got a crash with callstack which suggest server is getting deleted prior to client. On valgrind analysis we found invalid write operation with same callstack. callstack is pasted in comment section.

Test Plan: create a situation where server got deleted prior to client.

Reviewers: raster, cedric

Subscribers: govi, rajeshps, jpeg

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

8 years agoedje_cc handle theoretical string overflow (not real) shhh coverity
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 13:23:58 +0000 (22:23 +0900)]
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

8 years agoevas render2 region - handle if src region is empty correctly on add
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 13:16:06 +0000 (22:16 +0900)]
evas render2 region - handle if src region is empty correctly on add

fix coverity CID 1313542

8 years agoevas engine cache - drop useless iff that assert already checked
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 13:09:12 +0000 (22:09 +0900)]
evas engine cache - drop useless iff that assert already checked

CID 1267465 pointed this out - assert(eim) already checked this so no
need to do it again - looks confusing

8 years agoevas cache - avoid possible deref of null pointer
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 13:06:16 +0000 (22:06 +0900)]
evas cache - avoid possible deref of null pointer

this fixes CID 1267472

8 years agoecore pipe - fix close of pipe that doesnt set fd to invalid
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 13:02:45 +0000 (22:02 +0900)]
ecore pipe - fix close of pipe that doesnt set fd to invalid

this should fix CID 1267459

8 years agoeet - fix possible integer overflow in ptr diff on parse
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 12:54:57 +0000 (21:54 +0900)]
eet - fix possible integer overflow in ptr diff on parse

coverity spotted this - with silly long strings (like 1gb in size or+)
it might happen. fix CID 1256196

8 years agoevas scale cache - address possible coverity deadlock
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 12:45:39 +0000 (21:45 +0900)]
evas scale cache - address possible coverity deadlock

this should fix CID 1106338  where we don't lock and unlock caches in
the same order.

8 years agoevas software x11 - dri swapping - fix possible coverity bug
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 12:29:32 +0000 (21:29 +0900)]
evas software x11 - dri swapping - fix possible coverity bug

fix CID 1039620 - coverity is right, in theory.

8 years agoecore x xrandr - fix possible divide by zero
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 12:17:39 +0000 (21:17 +0900)]
ecore x xrandr - fix possible divide by zero

fixes CID 1039437 , 1039438

8 years agoevas object freeing - fix missing null check for layer
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 12:14:51 +0000 (21:14 +0900)]
evas object freeing - fix missing null check for layer

fix CID 1039409

8 years agoEdje entry: Add link press effect
Subodh Kumar [Mon, 11 Jul 2016 09:26:29 +0000 (18:26 +0900)]
Edje entry: Add link press effect

Summary:
Add link press effect

Custom tag (linked_pressed) has to be supplied in entry tb style
with color value for press effect to be applied on link text.

Reviewers: tasn

Subscribers: shilpasingh, cedric, jpeg

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

8 years agoembryo_cc: Buffer overflow check.
Umesh Tanwar [Mon, 11 Jul 2016 09:08:31 +0000 (18:08 +0900)]
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

8 years agoelput: check for a special return value
Marcel Hollerbach [Sun, 10 Jul 2016 17:07:33 +0000 (19:07 +0200)]
elput: check for a special return value

sd_pid_get_session returns ENODATA or ENXIO if it was unable to fetch
the session data for the given pid, reason for that is mostly that the
pid is not running is a session. Adding this as the error value can help
the user debugging the problem without the need of gdb´ing into the
function and checking the return value.

8 years agoecore_wl2: Make offer destroy more secure
Marcel Hollerbach [Wed, 6 Jul 2016 18:10:05 +0000 (20:10 +0200)]
ecore_wl2: Make offer destroy more secure

Check if it is NULL and NULL after each destroy call

8 years agoecore_wl2: split of cnp_selection_data_ready and
Marcel Hollerbach [Wed, 6 Jul 2016 18:09:07 +0000 (20:09 +0200)]
ecore_wl2: split of cnp_selection_data_ready and
dnd_selection_data_ready

before there was the case that both handlers are called even if just dnd
data arrived.

8 years agoecore_wl2: only destroy source when not needed anymore.
Marcel Hollerbach [Wed, 6 Jul 2016 12:54:53 +0000 (14:54 +0200)]
ecore_wl2: only destroy source when not needed anymore.

Otherwise we are destroying the source before getting dnd_finished or
cancled events, which is a problem.

8 years agoecore_wl2: buffer reading of the data
Marcel Hollerbach [Wed, 6 Jul 2016 12:48:46 +0000 (14:48 +0200)]
ecore_wl2: buffer reading of the data

Otherwise callbacks can go out even if the selection data is not ready
to read.

8 years agoecore_wl2: delay the destruction of the offer or do it in the read
Marcel Hollerbach [Wed, 6 Jul 2016 12:48:08 +0000 (14:48 +0200)]
ecore_wl2: delay the destruction of the offer or do it in the read

8 years agoEvas textblock: Apply scale factor to <linesize>, <linegap> formats
Youngbok Shin [Mon, 11 Jul 2016 08:57:36 +0000 (17:57 +0900)]
Evas textblock: Apply scale factor to <linesize>, <linegap> formats

Summary:
Font size is scaled according to scale factor.
The linesize, linegap formats also have to be scaled properly.
@fix

Test Plan:
Test cases are included.
Run "make check"

Reviewers: woohyun, Jieun, tasn, herdsman

Reviewed By: tasn

Subscribers: raster, cedric, jpeg

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

8 years agoelm main - fix indentation whitespace since iw as the last to touch it
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 08:35:25 +0000 (17:35 +0900)]
elm main - fix indentation whitespace since iw as the last to touch it

8 years agoEdje entry: Skip codes for updating cursor when cursor position is not changed
Youngbok Shin [Mon, 11 Jul 2016 08:09:31 +0000 (17:09 +0900)]
Edje entry: Skip codes for updating cursor when cursor position is not changed

Summary:
When ever a Edje's cursor function is called, "cursor,changed" signal is
emitted. Even if the position is not changed. And, in Elementary, the signal
will trigger evas_smart_objects_calculate() from elm_widget_show_region_set().
It causes bad performace.
@fix

Test Plan: N/A

Reviewers: tasn, herdsman, cedric, woohyun

Subscribers: jpeg, z-wony, Blackmole

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

8 years agoEvas Text: Fix width of BiDi text
Minwoo, Lee [Mon, 11 Jul 2016 07:26:13 +0000 (16:26 +0900)]
Evas Text: Fix width of BiDi text

Summary:
BiDi text is truncated because the way we find the last visual item in text object is wrong.
This patch is similar with _line_native_last_visual_get function in textblock.

Reviewers: cedric, tasn, herdsman

Subscribers: id213sin, cedric, jpeg

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

8 years agoelm_calendar: provides way for configuration of weekend text color
Jiwon Kim [Mon, 11 Jul 2016 07:10:34 +0000 (16:10 +0900)]
elm_calendar: provides way for configuration of weekend text color

Summary:
Suggest new mark_type for elm_calendar_mark_add().
The mark names are "weekend/day1", "weekend/day2".
It can be used for each country.
Some country can apply to "weekend/day2" to friday if day rest only a day for a week.
Until now, there is no way to separate holiday, saturday and sunday.

Test Plan:
1. saturday
```
struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
elm_calendar_mark_add(obj, "weekend/day1", &t, ELM_CALENDAR_WEEKLY);
```
2. sunday
```
 struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
 elm_calendar_mark_add(obj, "weekend/day2", &t, ELM_CALENDAR_WEEKLY);
```

Reviewers: CHAN, cedric, raster

Reviewed By: raster

Subscribers: raster, akanad, id213sin, cedric, jpeg

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

8 years agoRevert the wobbly window code in wayland_egl engine - fun is over guys
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 05:53:36 +0000 (14:53 +0900)]
Revert the wobbly window code in wayland_egl engine - fun is over guys

So ok. haha. Amusing. But this is inappropriate.

1. It's not an INTENDED effect in theme so unless the theme ius doing
it - it shouldn't happen.
2. There are places to do this and it's NOT inside an engine. There
are high level filter and other mechanisms.
3. Actually this shouldn't be even done client-side. It should be done
compositor-side when moving a window around. Knowing velocity vector
etc. is useful to a client so the protocol can stay but doing the
animation client-side is "wrong". Some windows wobble and others do
not based on toolkit? really? sure we have to live with the CSD
difference but this? The compositor can do this JUYST fine. leave it
to compositor... OR do this properly with filters client-side. e.g. a
2d displacement map with evas filters would do the job as long as it
interpolates. If you want a way of forcing ALL objects in the canvas
to redirect to an intermediate buffer then do it up there at the
canvas level. It then works in GL and software, as opposed to only GL.

Also.... this is now causing issues for users:

<memeka> hi, from
https://git.enlightenment.org/core/efl.git/commit/?id=fb76fe55a52ac212b6870f1d74470a79ea5c5246
i run EFL_WAYLAND_DISABLE_WWW=1 terminology -> but it crashes in
wayland_egl/www.c in the setup_shaders function .... HELP?

so the fun was fune until we do a release (now) and until this causes
problems for users. Back to tried and tested code.

If you want to do this... do it right at the portable layers above.

...

Revert "wayland-egl: Fix use after free"
Revert "wayland_egl: Fix redirect to texture"
Revert "evas-wayland-egl: Add www protocol handling to wayland-egl engine"
Revert "gl_common: Add API for redirecting render to texture"

This reverts commit 2760afbb0e8c8adfb35b1dee016be7883fa07323.
This reverts commit c937248eac0d0996f3cbc31a348b92c8baac2ec3.
This reverts commit c67f50b40aaf2595e21373bf89b53bc1edec44a4.
This reverts commit 0f7f4b6de07707031482f6e3e7f7c69f7fb7e855.

8 years agoecore_x: NULL derefs.
Benjamin Jacobs [Mon, 11 Jul 2016 05:19:59 +0000 (14:19 +0900)]
ecore_x: NULL derefs.

Reviewers: raster, devilhorns

Subscribers: raster, cedric, jpeg

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

8 years agoedje - language emit - handle null language and convert to none
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 04:46:21 +0000 (13:46 +0900)]
edje - language emit - handle null language and convert to none

cleans up an emit string being edje,language,(null) if no language is
set. use none instead of (null).

8 years agoedje: update a style when a style is added as class's member
Youngbok Shin [Mon, 11 Jul 2016 04:13:38 +0000 (13:13 +0900)]
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

8 years agoAccessibility: Read pre-edit text.
Shilpa Singh [Mon, 11 Jul 2016 01:36:38 +0000 (10:36 +0900)]
Accessibility: Read pre-edit text.

Summary:
Edje_entry:  In order to read pre-edit characters as well,
send entry_change_info with preedit,changed
Elm_entry: In order to read pre-edit characters as well,
send text to screen reader on preedit,changed.

Test Plan:
1. Change keyboard language to korean/enable prediction
2. Check the reading, text should be read even before committing

Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
Reviewers: thiepha, jihoon, cedric, raster

Reviewed By: raster

Subscribers: raster, kimcinoo, cedric, jpeg

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

8 years agoevas sw generic - handle alloc failures correctly for map struct
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 03:28:05 +0000 (12:28 +0900)]
evas sw generic - handle alloc failures correctly for map struct

map struct allocation was not handled right - we assumed successthen
later checked for failure with an if() after using the ptr. this
should fix CID 1353722

8 years agoelm view list - fix allocation of werong type size
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 03:23:06 +0000 (12:23 +0900)]
elm view list - fix allocation of werong type size

the code allocated a much bigger data struct than needed. it used the
wrong sizeof() type. this fixes CID 1355013

8 years agoedje edit - api was broken with incorrect l r t b ordering for border
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 03:17:46 +0000 (12:17 +0900)]
edje edit - api was broken with incorrect l r t b ordering for border

this fixes ordering to match everywhere else ANd usage of the get
func. this was broken already where top/bottom border would swap -
plese see coverity scan CID 1355590 for an example of problems this
created.

8 years agoevas generic loader raw - fix small coverity complaint
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 03:13:40 +0000 (12:13 +0900)]
evas generic loader raw - fix small coverity complaint

technically we dont handle a failed fwrite to stdout according to
coverity, but this is harmless as it doesnt matter if it fails - the
owner process cares. slave does not. silence CID 1356615

8 years agoecore animator - remove dead code
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 03:09:41 +0000 (12:09 +0900)]
ecore animator - remove dead code

fix CID 1356618

8 years agoevas textblock - fix deref before null check shown by coverity
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 03:07:10 +0000 (12:07 +0900)]
evas textblock - fix deref before null check shown by coverity

fixes CID 1356927

8 years agoelput - simplify and fix handling of string overflow with xdg runtimedir
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 03:01:51 +0000 (12:01 +0900)]
elput - simplify and fix handling of string overflow with xdg runtimedir

this addresses an issue pointed to by CID 1357168

8 years agoelput - remove pointless code in handling touch event
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 02:57:30 +0000 (11:57 +0900)]
elput - remove pointless code in handling touch event

i commented the pointless code out. this fixes CID 1357145

8 years agoelm atspi bridge - fix resource leak
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 02:49:59 +0000 (11:49 +0900)]
elm atspi bridge - fix resource leak

previous fix brought out a new leak not found before by coverity.

fix CID 1353602

8 years agoevas gl generic - fix ector end to place return in right var
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 02:43:12 +0000 (11:43 +0900)]
evas gl generic - fix ector end to place return in right var

fixes new CID 1357394

8 years agoedje_cc - fix new coverity issue
Carsten Haitzler (Rasterman) [Sat, 9 Jul 2016 02:39:31 +0000 (11:39 +0900)]
edje_cc - fix new coverity issue

fix CID 1357395

8 years agoedje: fix build without ephysics.
Cedric Bail [Fri, 8 Jul 2016 21:16:39 +0000 (14:16 -0700)]
edje: fix build without ephysics.

T4050

8 years agoedje: add a helper for recursive searching in hash
Jee-Yong Um [Fri, 8 Jul 2016 17:50:16 +0000 (10:50 -0700)]
edje: add a helper for recursive searching in hash

Summary:
If color class of an edje part is defined as "aaa/bbb/ccc/ddd",
edje will search for color class by the following sequence.
   "aaa/bbb/ccc/ddd"
   "aaa/bbb/ddd"
   "aaa/ddd"
   "ddd"
So, without additional lookup table, edje classes (color, text, size)
can have the functionality like inheritance.

Reviewers: jpeg, raster, cedric

Subscribers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
8 years agoedje_player: create scene in the edje_player if there are some 3D-components
perepelits.m [Fri, 8 Jul 2016 17:13:14 +0000 (10:13 -0700)]
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>
8 years agospinner: fix entry align of spinner.
Woochan Lee [Fri, 8 Jul 2016 17:03:57 +0000 (10:03 -0700)]
spinner: fix entry align of spinner.

Summary:
Spinner's entry align changed to center.
(Makes same align with spinner's text.)

Test Plan: elementary_test

Reviewers: jpeg

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
8 years agoelput: Fix horrid typo
Chris Michael [Fri, 8 Jul 2016 12:54:45 +0000 (08:54 -0400)]
elput: Fix horrid typo

Not sure how this happened, but use a ; not a : ;)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoelput: Fix insecure temporary file
Chris Michael [Fri, 8 Jul 2016 12:48:27 +0000 (08:48 -0400)]
elput: Fix insecure temporary file

Fix using mkstemp directly without securely setting umask first by
making use of eina_file_mkstemp which does set unmask.

Fixes Coverity CID1357165

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoevas-wayland-shm: Fix Insecure temporary file
Chris Michael [Fri, 8 Jul 2016 12:46:12 +0000 (08:46 -0400)]
evas-wayland-shm: Fix Insecure temporary file

Fix using mkstemp directly without securely setting umask first by
making use of eina_file_mkstemp function which does set umask.

Fixes Coverity CID1357164

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoelm: Fix potential null point dereferences.
Wonki Kim [Fri, 8 Jul 2016 12:28:18 +0000 (21:28 +0900)]
elm: Fix potential null point dereferences.

Summary:
If every assigning logics to enginelist is not performed some how,
system will crash because the first parameter of strcmp is null.

Test Plan: N/A

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, Hermet, raster, jpeg

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

8 years agoedje: fix the map state issue.
Hermet Park [Fri, 8 Jul 2016 12:16:16 +0000 (21:16 +0900)]
edje: fix the map state issue.

While the part state switching, map won't gonna be disabled again,
due to the incorrect state checking.

If there param1 indicates the current state with map off.
then it should disable the map obviously.
But It assumed the param1 is the previous state, not the current!,
so the map didn't go disabled state.

It was intended to avoid the duplicated map state setting.
So to keeping the intention, now it disable the map, only if
the map is actually enabled.

So both are fine.

@fix

8 years agoeina thread - fix window build with sigprocmask
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 12:09:17 +0000 (21:09 +0900)]
eina thread - fix window build with sigprocmask

fixes T4048

8 years agoecore-drm2: Perform input device calibration based on output name
Chris Michael [Thu, 7 Jul 2016 18:34:47 +0000 (14:34 -0400)]
ecore-drm2: Perform input device calibration based on output name

When a new input device gets added, device calibration may need to be
performed. In order for that to be done properly, we need to know
which output this input device is associated with. This patch makes a
function call to Elput in order to retrieve that output name and
perform the proper calibration.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoelput: Add API function to return output name associated with input
Chris Michael [Thu, 7 Jul 2016 18:33:38 +0000 (14:33 -0400)]
elput: Add API function to return output name associated with input
device

This patch adds a new API function which we can call from Ecore_Drm2
which will return the name of an output which is associated with a
given input device. This output name can then be used to find a
matching output, and perform any device calibration that is needed.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoemotion xine module - silence coverity
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 10:15:10 +0000 (19:15 +0900)]
emotion xine module - silence coverity

silence CID 1357140 as its harmless to not check fcntl here, but dont
confuse coverity.

8 years agoemotion vlc module - fix potential divide by 0
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 10:12:41 +0000 (19:12 +0900)]
emotion vlc module - fix potential divide by 0

fix CID 1357146

8 years agoemotion xine module - silence coverity complaint
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 10:06:57 +0000 (19:06 +0900)]
emotion xine module - silence coverity complaint

getting the fd from a valid fd handler wont return < 0 but in theory
it can, so just be silent coverity

silence CID 1357155

8 years agoemotion xine module - fix minor complaints but not bugs
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 10:02:50 +0000 (19:02 +0900)]
emotion xine module - fix minor complaints but not bugs

silence CID 1357156 , 1357172

8 years agoevas module load - make coverity happy but not a bug
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 09:59:21 +0000 (18:59 +0900)]
evas module load - make coverity happy but not a bug

silence CID 1357364

8 years agoedje cc mo encoding leak - ensure data is freed when setting up encoding
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 09:53:11 +0000 (18:53 +0900)]
edje cc mo encoding leak - ensure data is freed when setting up encoding

this should fix CID 1306604

8 years agoelm_prefs_cc - clean up return with added brackets to be clear
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 09:33:02 +0000 (18:33 +0900)]
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

8 years agoelm_prefs_cc - fix correct struct size calculation
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 09:24:06 +0000 (18:24 +0900)]
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.

8 years agoeio model - fix leak found by coverity
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 09:15:05 +0000 (18:15 +0900)]
eio model - fix leak found by coverity

fix CID 1355012

8 years agogl generic ector leak - fix not using return value of eng_image_data_put
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 08:13:17 +0000 (17:13 +0900)]
gl generic ector leak - fix not using return value of eng_image_data_put

this fixes CID 1339963

@fix

8 years agoecotr gl - fix leak found by coverity
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 08:08:37 +0000 (17:08 +0900)]
ecotr gl - fix leak found by coverity

fix CID 1347412

8 years agoelm map - fix coverity found leak in xml parsing
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 08:00:48 +0000 (17:00 +0900)]
elm map - fix coverity found leak in xml parsing

fix CID 1352814

8 years agoelm map - fix mem leak in xml parsing found by coverity
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 07:58:05 +0000 (16:58 +0900)]
elm map - fix mem leak in xml parsing found by coverity

fix CID 1352815

8 years agoatspi bridge - fix leak on error found by coverity
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 06:57:50 +0000 (15:57 +0900)]
atspi bridge - fix leak on error found by coverity

fix CID 1353602

8 years agoatspi bridge - fix leak on error found by coverity
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 06:48:58 +0000 (15:48 +0900)]
atspi bridge - fix leak on error found by coverity

fix CID 1353604

8 years agoedje cc - fix leake found by coverity
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 06:38:52 +0000 (15:38 +0900)]
edje cc - fix leake found by coverity

fixes CID 1355586

8 years agoedje cc - fix leak of name string on edje compilation time
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 06:36:39 +0000 (15:36 +0900)]
edje cc - fix leak of name string on edje compilation time

fixes CID 1355587

8 years agoedje edit - fix leaks spotted by coverity
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 06:33:19 +0000 (15:33 +0900)]
edje edit - fix leaks spotted by coverity

fixes CID 1356630

8 years agoelm cnp - wl - fix memory leak
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 06:16:06 +0000 (15:16 +0900)]
elm cnp - wl - fix memory leak

fix memory leak specified in CID 1357160 , 1357159 , 1357158 , 1357157

8 years agoelm: Fix cnp crash on WL
Jean-Philippe Andre [Fri, 8 Jul 2016 05:33:01 +0000 (14:33 +0900)]
elm: Fix cnp crash on WL

See D4144.

Original author: @slotus.lee

SEG_FAULT happens when the object which has selection is deleted,
and new selection is done at another object.
Reason: loss_cb is not removed when the object which has selection is deleted.
When new selection is set for new object, the loss_cb is called for deleted
object. As result, SEG_FAULT happens.
This issue was also happened in X11 (https://phab.enlightenment.org/D2763)

Test plan:
(on wayland environment) Run elementary test, open Entry, do selection,
close Entry window, open Entry one more time, do selection.

8 years agoevas: Fix warning about unused function
Jean-Philippe Andre [Fri, 8 Jul 2016 03:26:55 +0000 (12:26 +0900)]
evas: Fix warning about unused function

I kept it here for the record. It was useful, could be useful
again.

8 years agoeo: Fix warnins (return NULL instead of bool)
Jean-Philippe Andre [Fri, 8 Jul 2016 03:26:07 +0000 (12:26 +0900)]
eo: Fix warnins (return NULL instead of bool)

8 years agoecore: Fix warning about err_no
Jean-Philippe Andre [Fri, 8 Jul 2016 03:24:42 +0000 (12:24 +0900)]
ecore: Fix warning about err_no

Double warning, yay:
 explicitly assigning value of variable of type 'int' to itself
 variable 'err_no' is uninitialized when used here

See 1abbfdd1f7b09ba9931657d57ffc4172c662c2eb

8 years agoelm quicklaunch binary - fix possible 0 termination issue with strings
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 03:18:59 +0000 (12:18 +0900)]
elm quicklaunch binary - fix possible 0 termination issue with strings

the input strings for agrs/env could be not 0 terminated tho the
sender guarantees it. ensure they are by 0'ing the last byte

fix CID 1353607

8 years agoevas regions in render2 - work around coverity complaints
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 03:05:08 +0000 (12:05 +0900)]
evas regions in render2 - work around coverity complaints

CID 1352392 is a false positive as the ptr is not dereferenced, but
not making coverity confused it good.

8 years agoelm view list - just be less obviously a possible bug to coverity
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 02:54:57 +0000 (11:54 +0900)]
elm view list - just be less obviously a possible bug to coverity

CID 1355014 is a false positive, but it's god to not confuse it too
often. clean up.

8 years agoemotion libvlc module - fix possible argv init issue with tokens
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 02:45:07 +0000 (11:45 +0900)]
emotion libvlc module - fix possible argv init issue with tokens

fixes CID 1357170

8 years agoelm conform - fix leak on jproperty change
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 02:36:23 +0000 (11:36 +0900)]
elm conform - fix leak on jproperty change

this fixes CID 1353606

@fix

8 years agoelm layout - fix possible leak
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 02:02:41 +0000 (11:02 +0900)]
elm layout - fix possible leak

fixes CID 1357365 (new!)

8 years agoecore - be paranoid about storing errno from select immediately
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 02:00:55 +0000 (11:00 +0900)]
ecore - be paranoid about storing errno from select immediately

in theory another libc call could overwrite errno between select
exiting and errno being used for errors. be paranoid. i know of no
real bug that this causes though.

8 years agoevas event handling4- fix more corner cases where bounding is bad
Carsten Haitzler (Rasterman) [Fri, 8 Jul 2016 00:54:33 +0000 (09:54 +0900)]
evas event handling4- fix more corner cases where bounding is bad

so smart object bounding box wasnt updated properly in several other
cases. fix those other cases too by dirtying bounding box region.

this continues on from:

f6b3c31561276a6c7afc8fb56ae2e5363772782c
25d77bc1d24d9fd539c681fa58db976c1ca65051
9f0fd66ab818d212fa88faef316ac17625f1a2f5

this fixes T4017

@fix

8 years agoelm_panes : modified to keep panes content left size after orientation changed
JEONGHYUN YUN [Fri, 8 Jul 2016 00:49:50 +0000 (09:49 +0900)]
elm_panes : modified to keep panes content left size after orientation changed

Reviewers: woohyun

Subscribers: cedric, jpeg

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

8 years agoedje_edit: on save_all firstly save all cached group, then all other
Vitalii Vorobiov [Thu, 7 Jul 2016 17:31:01 +0000 (20:31 +0300)]
edje_edit: on save_all firstly save all cached group, then all other

this will fix case when aliased group was changed and alias-group was loaded,
so then on saving alias-group WON'T rewrite all changed to aliased group

@fix

8 years agoeolian: simplify enum generation logic
Daniel Kolesa [Thu, 7 Jul 2016 14:59:09 +0000 (15:59 +0100)]
eolian: simplify enum generation logic

8 years agodocs: much improved enum/struct/typedef C signatures
Daniel Kolesa [Thu, 7 Jul 2016 14:52:00 +0000 (15:52 +0100)]
docs: much improved enum/struct/typedef C signatures

8 years agodocs: support refs and new types in generator
Daniel Kolesa [Thu, 7 Jul 2016 14:23:45 +0000 (15:23 +0100)]
docs: support refs and new types in generator

8 years agoelua: support is_restart for events in eolian api
Daniel Kolesa [Thu, 7 Jul 2016 14:15:03 +0000 (15:15 +0100)]
elua: support is_restart for events in eolian api

8 years agodata: fix last set of data files with executable bit
Stefan Schmidt [Thu, 7 Jul 2016 12:32:41 +0000 (14:32 +0200)]
data: fix last set of data files with executable bit

8 years agoexamples: edje: remove executable bit from svg files
Stefan Schmidt [Thu, 7 Jul 2016 12:21:03 +0000 (14:21 +0200)]
examples: edje: remove executable bit from svg files

These are plain data files, no need for an executable bit here.

8 years agoexamples: edje: make sure new svg files are packaged
Stefan Schmidt [Thu, 7 Jul 2016 12:15:47 +0000 (14:15 +0200)]
examples: edje: make sure new svg files are packaged

In commit 0fc151cddc4cdb50661d11a124d42a9d42fa9875 these new svg files have
been added but forgotten to be made part of DATA_FILES.