platform/upstream/efl.git
8 years agoeo-cxx: Fix C++ use of new _eo_add_end signature
Felipe Magno de Almeida [Tue, 12 Jul 2016 20:28:38 +0000 (17:28 -0300)]
eo-cxx: Fix C++ use of new _eo_add_end signature

8 years agoelementary: Properly swallow wayland clients
Chris Michael [Tue, 12 Jul 2016 13:44:14 +0000 (09:44 -0400)]
elementary: Properly swallow wayland clients

This patch fixes an issue where wayland windows would not swallow
clients properly. Basically, we should be swallowing the elm window
layout directly rather than use a rectangle (as was previous). This
commit also waits until the internal elm theme has been applied to the
sd->edje object before adding the wayland window frame.

This commit has the added benefit of being able to remove an additional
Evas_Object from the internal data structure.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoelementary: Clip window swallow clients
Chris Michael [Tue, 12 Jul 2016 13:43:19 +0000 (09:43 -0400)]
elementary: Clip window swallow clients

This commit sets up a client_clip for the windows client being
swallowed so that during resize, any window contents do not draw
outside the window.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoRevert "efl theme for wayland borders - dont accept events on client swallow"
Chris Michael [Tue, 12 Jul 2016 13:42:23 +0000 (09:42 -0400)]
Revert "efl theme for wayland borders - dont accept events on client swallow"

This reverts commit fdaefdbf9a8f518930b2d5f71372d1c52f8b2ee7. This is
being reverted because the issue of wayland borders not swallowing
clients has now been fixes and thus mouse_events work as expected wrt
client swallow.

8 years agoefl theme for wayland borders - dont accept events on client swallow
Carsten Haitzler (Rasterman) [Tue, 12 Jul 2016 12:04:27 +0000 (21:04 +0900)]
efl theme for wayland borders - dont accept events on client swallow

8 years agodocs: generate more info about events
Daniel Kolesa [Tue, 12 Jul 2016 10:13:15 +0000 (11:13 +0100)]
docs: generate more info about events

8 years agoEo add ref: Fix a bug causing leaks and wrong refcount in some cases.
Tom Hacohen [Tue, 12 Jul 2016 09:34:54 +0000 (10:34 +0100)]
Eo add ref: Fix a bug causing leaks and wrong refcount in some cases.

When using eo_add_ref, it was increasing the refcount before the user
context in the addition has fully ended. This means the object had its
reference increased while still not finalized, which means it was
sometimes passed with an increased refcount to unsuspecting class code.
The correct behaviour is to increase the reference count just before
returning the object to the user at the end of eo_add so the reference
count is only increased for whoever asked for it.

Breaks ABI!

@fix

8 years agoEo refcount: Split the refcount to private and public (user).
Tom Hacohen [Tue, 12 Jul 2016 09:26:23 +0000 (10:26 +0100)]
Eo refcount: Split the refcount to private and public (user).

This commit changes the way refcount is dealt with internally. Before
this commit, there was one refcount shared between Eo internals and
users. Now there is a refcount for eo operations (like for example,
function calls) and one for user refcount (eo_ref).

An example bug that this protects against (which is seemingly rather
common) is:
some_eo_func(obj);

// Inside the implementation of that func:
pd->a = 1; // The object's private data
eo_unref(obj); // To delete the object
eo_unref(obj); // A big one extra unref
pd->a = 2; // Segfault, this data has already been freed

This is a feature, but really just a fix for a class of bugs.

@feature

8 years agoelua: event method fixes in eolian bindings
Daniel Kolesa [Tue, 12 Jul 2016 10:09:05 +0000 (11:09 +0100)]
elua: event method fixes in eolian bindings

8 years agoelm config - fix previous commit missing strdup
Carsten Haitzler (Rasterman) [Tue, 12 Jul 2016 09:23:12 +0000 (18:23 +0900)]
elm config - fix previous commit missing strdup

oops - accidentally removed the strcpy. fix

8 years agoelm config - use eina_str_tolower not tolower from libc
Carsten Haitzler (Rasterman) [Tue, 12 Jul 2016 09:20:34 +0000 (18:20 +0900)]
elm config - use eina_str_tolower not tolower from libc

8 years agoelementary - fix focus switching again after break
Carsten Haitzler (Rasterman) [Tue, 12 Jul 2016 09:03:54 +0000 (18:03 +0900)]
elementary - fix focus switching again after break

this fixes T4053

this was due to everal widgets haveing changed their class names and
are using the new names for mapping to keybinding config that used
legacy names to match binding to widget.

8 years agoUi text: port more functionality to the test
Daniel Hirt [Mon, 11 Jul 2016 11:21:56 +0000 (11:21 +0000)]
Ui text: port more functionality to the test

  - Make "Sel" button work
  - Make "Ins" button to insert emoticons

8 years agoUi text: track changes made in text object
Daniel Hirt [Mon, 11 Jul 2016 11:20:28 +0000 (11:20 +0000)]
Ui text: track changes made in text object

This is required when a user uses the Efl.Canvas.Text API to change the content.

8 years agoCanvas text: add "changed" event
Daniel Hirt [Mon, 11 Jul 2016 11:18:19 +0000 (11:18 +0000)]
Canvas text: add "changed" event

We need to keep track on changes of content.

8 years agoCanvas text: fix annotation set
Daniel Hirt [Mon, 11 Jul 2016 11:09:48 +0000 (11:09 +0000)]
Canvas text: fix annotation set

The cursor position was not set correctly to the respective fnode, causing
annotation to not be applied correctly with text that has more than one
paragraph.

8 years agoUi text: bring back selection handlers support
Daniel Hirt [Sun, 10 Jul 2016 16:52:14 +0000 (16:52 +0000)]
Ui text: bring back selection handlers support

8 years agoUi text: cleanup some port leftovers
Daniel Hirt [Sun, 10 Jul 2016 11:44:22 +0000 (11:44 +0000)]
Ui text: cleanup some port leftovers

8 years agoUi text: instantiate canvas text obj before smart_add
Daniel Hirt [Sun, 10 Jul 2016 11:43:43 +0000 (11:43 +0000)]
Ui text: instantiate canvas text obj before smart_add

8 years agoUi text: bring back some atspi support
Daniel Hirt [Sun, 10 Jul 2016 10:37:02 +0000 (10:37 +0000)]
Ui text: bring back some atspi support

8 years agoUi text: cleanup ifdef
Daniel Hirt [Sun, 10 Jul 2016 10:30:27 +0000 (10:30 +0000)]
Ui text: cleanup ifdef

8 years agoUi text: make scroller work
Daniel Hirt [Sun, 10 Jul 2016 14:30:51 +0000 (14:30 +0000)]
Ui text: make scroller work

8 years agoUi text: use the right clip
Daniel Hirt [Mon, 4 Jul 2016 17:20:26 +0000 (17:20 +0000)]
Ui text: use the right clip

8 years agoUi text: don't null-check for free()
Daniel Hirt [Mon, 4 Jul 2016 11:22:59 +0000 (11:22 +0000)]
Ui text: don't null-check for free()

8 years agoUi text: remove old edje callbacks
Daniel Hirt [Sun, 3 Jul 2016 18:12:02 +0000 (18:12 +0000)]
Ui text: remove old edje callbacks

8 years agoEdje entry: Do not update anchors outside viewport.
Subodh Kumar [Tue, 12 Jul 2016 10:36:58 +0000 (10:36 +0000)]
Edje entry: Do not update anchors outside viewport.

Summary:
Do not update anchors outside viewport.

Problem is that when entry contains large number of anchors,
scrolling and launch performance is degraded due to lots of objects
being created and maintained, so to enhance the performance of
entry with anchors,  anchors is not  updated outside the viewport.

Test Plan:
1. Should have large number of anchors in entry
2. Observe the launch and scrolling performance.

Reviewers: tasn, raster, herdsman

Subscribers: thiepha, raster, cedric, jpeg

Tags: #efl

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

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