platform/upstream/efl.git
7 years agoEfl.Ui.Check: rename data get macros
Amitesh Singh [Fri, 16 Jun 2017 07:11:42 +0000 (16:11 +0900)]
Efl.Ui.Check: rename data get macros

7 years agoEfl.Ui.Slider: rename data get macros
Amitesh Singh [Fri, 16 Jun 2017 07:07:27 +0000 (16:07 +0900)]
Efl.Ui.Slider: rename data get macros

7 years agoRevert "ecore-wl2: Add API to support setting window stack mode"
Chris Michael [Thu, 15 Jun 2017 17:09:34 +0000 (13:09 -0400)]
Revert "ecore-wl2: Add API to support setting window stack mode"

This commit reverts support for added API functions inside Ecore_Wl2
to support setting window stacking mode as per IRC discussion with
Cedric

This reverts commit 1359fc9e5feb7e2f9b0cdf10b25af43a6437b93b.

7 years agoRevert "ecore-evas-wayland: Add support for setting window stack mode"
Chris Michael [Thu, 15 Jun 2017 17:08:39 +0000 (13:08 -0400)]
Revert "ecore-evas-wayland: Add support for setting window stack mode"

This commit reverts support for setting window stacking mode from
ecore_evas_wayland as per IRC dicussion with cedric

This reverts commit a3cf0d3a54f54cccfb48dc2234dada147c30f419.

7 years agoecore-evas-wayland: Add support for setting window stack mode
Chris Michael [Thu, 15 Jun 2017 15:39:27 +0000 (11:39 -0400)]
ecore-evas-wayland: Add support for setting window stack mode

This patch adds support for updating ecore_wl2_window stack mode when
the ecore_evas_layer_set is called.

"#divergence"

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to support setting window stack mode
Chris Michael [Thu, 15 Jun 2017 15:34:50 +0000 (11:34 -0400)]
ecore-wl2: Add API to support setting window stack mode

Small patch to add support for setting stack mode on a given window

"#divergence"

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to get/set if a window is in floating mode
Chris Michael [Thu, 15 Jun 2017 15:07:48 +0000 (11:07 -0400)]
ecore-wl2: Add API to get/set if a window is in floating mode

Small patch to add API functions which allow getting/setting if a
window is in floating mode

"#divergence"

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to set window role
Chris Michael [Thu, 15 Jun 2017 14:53:08 +0000 (10:53 -0400)]
ecore-wl2: Add API to set window role

Small patch to add support for setting a window role on a given window

"#divergence"

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas-wayland: Add support for focus_skip_set
Chris Michael [Thu, 15 Jun 2017 14:42:28 +0000 (10:42 -0400)]
ecore-evas-wayland: Add support for focus_skip_set

This patch adds support for ecore_evas_focus_skip_set in the wayland
engine.

"#divergence"

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to get if a window should ignore focus events
Chris Michael [Thu, 15 Jun 2017 14:35:45 +0000 (10:35 -0400)]
ecore-wl2: Add API to get if a window should ignore focus events

Small patch to add an API function which can be used to find out if a
given window is set to skip focus events.

"#divergence"

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to set if a window should skip focus
Chris Michael [Thu, 15 Jun 2017 14:32:25 +0000 (10:32 -0400)]
ecore-wl2: Add API to set if a window should skip focus

Small patch to add an API function which can be called to set if a
window should skip focus.

"#divergence"

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelm_panes: Refactoring of focus_next
Jaehyun Cho [Thu, 15 Jun 2017 12:40:51 +0000 (21:40 +0900)]
elm_panes: Refactoring of focus_next

To handle ELM_FOCUS_UP/DOWN/RIGHT/LEFT in focus_next, refactoring is
done.

7 years agoevas: Fix mouse events in inlined windows
Jean-Philippe Andre [Thu, 15 Jun 2017 11:26:54 +0000 (20:26 +0900)]
evas: Fix mouse events in inlined windows

There is a mismatch between seat & pointer.
See @zmike's comments in T5515. Having both seat and pointer
devices as different devices leads to these kinds of issues.
Really annoying.

Ref T5515

7 years agoevas: Fix compilation with DDD_DO
Jean-Philippe Andre [Thu, 15 Jun 2017 10:49:44 +0000 (19:49 +0900)]
evas: Fix compilation with DDD_DO

This enables some insane debugging for input events inside evas.
Also, declutter the code by always providing the "spaces" variable.
Obviously this is not enabled :)

7 years agoecore_imf: fix wrong doxygen
Jihoon Kim [Thu, 15 Jun 2017 10:07:34 +0000 (19:07 +0900)]
ecore_imf: fix wrong doxygen

7 years agoevas: Fix crash when window can not be created
Jean-Philippe Andre [Thu, 15 Jun 2017 08:54:45 +0000 (17:54 +0900)]
evas: Fix crash when window can not be created

Example, without any running wayland compositor:
   ELM_DISPLAY=wl runsomeapp

elm_win runs efl_constructor() during finalize() which is wrong
and leads to this kind of inconsistencies. Urgh.

7 years agocnp: Fix copy & paste in inwin inside wayland
Jean-Philippe Andre [Thu, 15 Jun 2017 08:32:59 +0000 (17:32 +0900)]
cnp: Fix copy & paste in inwin inside wayland

Scenario:
  ELM_DISPLAY=wl elementary_test -to "Window Inline"

Copy & paste some stuff between entries inside the inwins and
also in a standard window.

7 years agocnp: Avoid CRI message about wayland in X
Jean-Philippe Andre [Thu, 15 Jun 2017 07:34:22 +0000 (16:34 +0900)]
cnp: Avoid CRI message about wayland in X

Test scenario:
  elementary_test -to "Window Inline"
  Click on an entry, select some text (maybe with the keyboard)

There was a CRI message inside _ecore_evas_interface_get because
ecore_evas_wayland2_window_get() was called on an X11 ecore_evas
(not wayland).

The function was supposed to return NULL here.

7 years agowidget: Move mirrored_automatic to Efl.Ui.Base
Jean-Philippe Andre [Thu, 15 Jun 2017 02:12:00 +0000 (11:12 +0900)]
widget: Move mirrored_automatic to Efl.Ui.Base

This is, unlike what some of the documentation says, a public
API on elm_object. Let's place it along mirrored for consistency,
even if edje object will not implement it.

Ref T5363

7 years agowin: Implement Efl.Canvas device & seat get
Jean-Philippe Andre [Thu, 15 Jun 2017 01:38:33 +0000 (10:38 +0900)]
win: Implement Efl.Canvas device & seat get

By name or id

7 years agoelm+evas - windows - fix alt+f4 to work without losing alt key
Vincent Torri [Thu, 15 Jun 2017 06:58:05 +0000 (15:58 +0900)]
elm+evas - windows - fix alt+f4 to work without losing alt key

fixes  T5581

7 years agoevas textblock: add align=locale option to respect locale's direction
Youngbok Shin [Tue, 13 Jun 2017 10:15:12 +0000 (13:15 +0300)]
evas textblock: add align=locale option to respect locale's direction

Summary:
There are many requests to add a new feature for handling horizontal align
according to current locale. For example, in RTL locale setting,
users want to see right aligned text for every list's item.
Even if some of list's items only contain LTR characters!
It is useful for the needs.
@feature

Test Plan: N/A

Reviewers: herdsman, tasn, woohyun, raster, cedric

Reviewed By: herdsman, raster

Subscribers: z-wony, jpeg

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

7 years agoefl.ui.slider: rename data members related to interval apis
Amitesh Singh [Thu, 15 Jun 2017 04:52:54 +0000 (13:52 +0900)]
efl.ui.slider: rename data members related to interval apis

no change in functionality. It improves the code readbility.

ref T5361

7 years agointf: range: rename unit_format to range_unit_format
Amitesh Singh [Thu, 15 Jun 2017 04:29:51 +0000 (13:29 +0900)]
intf: range: rename unit_format to range_unit_format

ref T5361

7 years agoslider: remove range APIs
Amitesh Singh [Thu, 15 Jun 2017 03:00:45 +0000 (12:00 +0900)]
slider: remove range APIs

move this api into range intf and rename it
to interval

ref T5361

7 years agointf: rename progress to range
Amitesh Singh [Thu, 15 Jun 2017 01:31:25 +0000 (10:31 +0900)]
intf: rename progress to range

This is more appropriate name especially on slider widget.

ref T5361

7 years agoexamples: fix ecore_exe_child example to work properly on Windows
Andrii Kroitor [Thu, 15 Jun 2017 03:17:39 +0000 (12:17 +0900)]
examples: fix ecore_exe_child example to work properly on Windows

Summary: ecore_main_fd_handler_add is not working on Windows

Reviewers: vtorri, raster

Subscribers: cedric, jpeg

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

7 years agoelm: Fix make check (change in atspi role of MBE)
Jean-Philippe Andre [Thu, 15 Jun 2017 01:16:53 +0000 (10:16 +0900)]
elm: Fix make check (change in atspi role of MBE)

See da5ba14664b71f19afc3359f36ff11442012d19a
Ref D4925

7 years agoecore_evas: Document the drm and gl drm window constructors
Bryce Harrington [Thu, 15 Jun 2017 01:09:30 +0000 (10:09 +0900)]
ecore_evas: Document the drm and gl drm window constructors

Reviewers: cedric

Subscribers: jpeg

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

7 years agoevas: Disable calls to evas_device_class_set
Jean-Philippe Andre [Thu, 15 Jun 2017 00:56:59 +0000 (09:56 +0900)]
evas: Disable calls to evas_device_class_set

After finalize, the type of an input device can not be changed.
So, deprecate the function and prevent anything from happening
unless we're inside efl_add().

Ref T5515

7 years agowidget: Make cursor_add/del internal
Jean-Philippe Andre [Wed, 14 Jun 2017 11:17:29 +0000 (20:17 +0900)]
widget: Make cursor_add/del internal

This API is meant to be used internally to elm, not from outside.
The public API only exposes part_cursor_set on layout, and a series
of cursor EAPIs.

7 years agoector: document ector_glsym_set
Bryce Harrington [Wed, 14 Jun 2017 21:27:15 +0000 (14:27 -0700)]
ector: document ector_glsym_set

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoecore_evas: document client leader routines
Bryce Harrington [Wed, 14 Jun 2017 21:26:26 +0000 (14:26 -0700)]
ecore_evas: document client leader routines

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoedje: add efl_version property
Youngbok Shin [Wed, 14 Jun 2017 21:24:04 +0000 (14:24 -0700)]
edje: add efl_version property

Summary:
efl_version will be used to figure out which version of EFL lib
is used to develop a edje file.
If there is no property of efl_version, it will be 1.19 as default.
This feature is needed to fix T5548.

Example:
  efl_version: 1 20

@feature

Test Plan: N/A

Reviewers: cedric, jpeg, herdsman, zmike, raster

Reviewed By: cedric

Maniphest Tasks: T5548

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoevas: forgotten unecessary initialization.
Cedric BAIL [Wed, 14 Jun 2017 21:17:18 +0000 (14:17 -0700)]
evas: forgotten unecessary initialization.

7 years agoevas: use Eina_List instead of Eina_CList for event grabber.
Cedric BAIL [Wed, 14 Jun 2017 19:42:25 +0000 (12:42 -0700)]
evas: use Eina_List instead of Eina_CList for event grabber.

Eina_Clist can actually change the pointer in the cell next bypassing
the CoW infrastructure leading to trouble. Considering the case here,
using the optimization of Eina_Clist is not necessary and if performance
issue arise, can be fixed by using a dichotomic search when removing
data. I don't think it is necessary to add this complexity without
a real life case.

7 years agoevas: allow list for _evas_event_object_list_in_get utility function.
Cedric BAIL [Wed, 14 Jun 2017 19:20:36 +0000 (12:20 -0700)]
evas: allow list for _evas_event_object_list_in_get utility function.

7 years agoelm_code: Fix make check
Andy Williams [Wed, 14 Jun 2017 18:38:43 +0000 (19:38 +0100)]
elm_code: Fix make check

The tests were using some code that became somewhat invalid, adjusting tests

7 years agoevas: actually free the cow allocated memory.
Cedric BAIL [Wed, 14 Jun 2017 17:00:04 +0000 (10:00 -0700)]
evas: actually free the cow allocated memory.

7 years agoRevert "Revert "evas: put events related pointer into a cow to reduce evas_object...
Cedric BAIL [Tue, 13 Jun 2017 16:36:33 +0000 (09:36 -0700)]
Revert "Revert "evas: put events related pointer into a cow to reduce evas_object fat.""

This reverts commit f9d3219c1739d7abea16fecd92fcc0981ddf801c.

7 years agoevas xpm loader - remove tabs and clean up formatting
Carsten Haitzler (Rasterman) [Wed, 14 Jun 2017 08:11:59 +0000 (17:11 +0900)]
evas xpm loader - remove tabs and clean up formatting

just non-code changes here...

7 years agoevas xpm loader - remove the rgb txt file db loading and compile in
Carsten Haitzler (Rasterman) [Wed, 14 Jun 2017 07:51:08 +0000 (16:51 +0900)]
evas xpm loader - remove the rgb txt file db loading and compile in

so modern systems seem to have abandoned rgb.txt files. this leads to
us breaking the loading of xpm files tha use color names ... i added
the rgbt.txt from vim but that didn't seem to help... odd... so to just
stop adding path after path to load... ship our own. we could ship the
file... but then we'd still have to load and parse it... every time we
look up a color. so i munged the data with awk and now we compile it
in. it should consume the same space the rgb.txt does in the shared lib
binary. if not read it shouldn't be paged in. it should end up cheaper
than our floaing of the file and mmaping it when xpm module is
loaded/initted... so either way more efficient, uses a little less ram
(12306 bytes vs 17780 for the rgb.txt) ... and bonus - dont have
an extenral out-of-code data blob to find, manage install etc...

this means we should load xpms with colornames correctly again on
systems without an rgb.txt provided by x11 ... which seems to be the
common case now. :(

@fix

7 years agotest suite - evas - fix xpm ref image - it was badly broken...
Carsten Haitzler (Rasterman) [Wed, 14 Jun 2017 06:13:18 +0000 (15:13 +0900)]
test suite - evas - fix xpm ref image - it was badly broken...

since rgb.txt has seemingly disappeared from systems we didnt parse
colornames (missing the colorname db entirely) and the test image was
generated using a broken missing rgb.txt thus colors were wrong. a
recent fix made evas find colornames again...

7 years agotests: Remove invalid call to elm_run
Jean-Philippe Andre [Wed, 14 Jun 2017 07:47:51 +0000 (16:47 +0900)]
tests: Remove invalid call to elm_run

Nothing is supposed to happen here. Just exit after running
the checks. Don't wait for something to happen until eternity...

7 years agotests: Fix eina_thread_queue test case 5 & 6
Jean-Philippe Andre [Wed, 14 Jun 2017 06:07:28 +0000 (15:07 +0900)]
tests: Fix eina_thread_queue test case 5 & 6

ecore_test_ecore_thread_eina_thread_queue_t6 failed often for me.
eina_thread_queue_wait() was returning NULL.

I believe this is because the test case ended abruptly without
waiting for the threads to finish. Indeed, both threads tried
hard to reach 10000 messages but it didn't make sense for them
both to reach this value, only one would end there.

This patch adds an exit message sent by thread 1 to the two other
threads, and all threads are waited upon using a single semaphore.

Note: This also renames some functions to match their test case
number.

@raster

7 years agowin: Use efl_data_scope_safe_get instead of macros
Jean-Philippe Andre [Wed, 14 Jun 2017 05:23:46 +0000 (14:23 +0900)]
win: Use efl_data_scope_safe_get instead of macros

This removes macros that don't make the code easier to read
and aren't actually as safe as this safe data_get.

7 years agoevas: Use efl_data_scope_safe_get in evas events
Jean-Philippe Andre [Wed, 14 Jun 2017 05:08:25 +0000 (14:08 +0900)]
evas: Use efl_data_scope_safe_get in evas events

This removes a few NULL + efl_isa safety checks.

7 years agoeo: Add API efl_data_scope_safe_get
Jean-Philippe Andre [Wed, 14 Jun 2017 04:40:46 +0000 (13:40 +0900)]
eo: Add API efl_data_scope_safe_get

This is a safe version of efl_data_scope_get, meaning that it will
return NULL if the object is not of the required type, or if there
is no data for that class, or if the given class was used as an
interface (and isn't a mixin).

@feature

7 years agoscroller: Remove propagate_events to avoid name collision
Jeeyong Um [Wed, 14 Jun 2017 06:20:23 +0000 (15:20 +0900)]
scroller: Remove propagate_events to avoid name collision

7 years agoelm_radio, elc_multibuttonentry, elm_colorselector: "checked" signal sent
Shilpa Singh [Wed, 14 Jun 2017 04:04:51 +0000 (13:04 +0900)]
elm_radio, elc_multibuttonentry, elm_colorselector: "checked" signal sent

Summary:
Radio, MBE items, color selector items have ELM_ATSPI_ROLE_RADIO_BUTTON role, when one item
is selected the other items are automatically unselected, so a notification has to be sent in atspi mode
to read the status accordingly

Test Plan:
In ATSPI mode when radio, mbe item, color selector item is selected
status has to notified.

Reviewers: kimcinoo, cedric

Subscribers: govi, rajeshps, jpeg

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

7 years agoevas: Fix resize & move intercepts
Jean-Philippe Andre [Tue, 13 Jun 2017 02:13:03 +0000 (11:13 +0900)]
evas: Fix resize & move intercepts

Thanks @zmike for the report.
This in therory should restore behaviour from 1.18,
where the intercept function is called even if the geometry
isn't changed.

Test scenario, in E:
 1. remove bryces, shelves on a screen, or mark all as autohide
 2. open chromium or any CSD application as unmaximized
 3. maximize the window
 4. make it fullscreen (eg. with chromium: F11)

See 8a9f0bd603aaaf3abd3ca9a.

Ref T4749
Fixes T5573

@fix

7 years agowidget: Implement mirrored from Efl.Ui.Base
Jean-Philippe Andre [Tue, 13 Jun 2017 10:41:15 +0000 (19:41 +0900)]
widget: Implement mirrored from Efl.Ui.Base

Ref T5363

7 years agoelm config: add more NULL check
Thiep Ha [Wed, 14 Jun 2017 01:40:27 +0000 (10:40 +0900)]
elm config: add more NULL check

Add NULL check when we cannot allocate memory.

7 years agoecore-wl2: Group window functions together in header file
Chris Michael [Tue, 13 Jun 2017 17:23:54 +0000 (13:23 -0400)]
ecore-wl2: Group window functions together in header file

This patch just moves window related functions together in the
Ecore_Wl2_Window_Group

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas-wayland: Add support for setting auxiliary hints
Chris Michael [Tue, 13 Jun 2017 16:56:24 +0000 (12:56 -0400)]
ecore-evas-wayland: Add support for setting auxiliary hints

This patch adds function pointers to the Wayland Interface that can be
used for supporting auxiliary hints on a given window

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas: Fix return value in ecore_evas_aux_hint_val_set function
Chris Michael [Tue, 13 Jun 2017 16:55:01 +0000 (12:55 -0400)]
ecore-evas: Fix return value in ecore_evas_aux_hint_val_set function

Small patch to fix misleading return value when
ecore_evas_aux_hint_val_set fails. In the above code, we will return
EINA_TRUE already if the aux_hints_set works, so this return value at
the bottom of the function should be EINA_FALSE.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas: Support auxiliary hints for ecore-evas-wayland
Chris Michael [Tue, 13 Jun 2017 16:54:05 +0000 (12:54 -0400)]
ecore-evas: Support auxiliary hints for ecore-evas-wayland

Small patch to support using Ecore_Evas_Interface_Wayland in order to
add support for setting auxiliary hints on a surface

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Free auxiliary window hints when we destroy a window
Chris Michael [Tue, 13 Jun 2017 16:38:19 +0000 (12:38 -0400)]
ecore-wl2: Free auxiliary window hints when we destroy a window

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to support deleting auxiliary window hints
Chris Michael [Tue, 13 Jun 2017 16:32:59 +0000 (12:32 -0400)]
ecore-wl2: Add API to support deleting auxiliary window hints

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API function to change auxiliary window hint
Chris Michael [Tue, 13 Jun 2017 16:23:49 +0000 (12:23 -0400)]
ecore-wl2: Add API function to change auxiliary window hint

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API to support adding auxiliary window hints
Chris Michael [Tue, 13 Jun 2017 16:18:01 +0000 (12:18 -0400)]
ecore-wl2: Add API to support adding auxiliary window hints

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add API function to get list of supported auxiliary hints
Chris Michael [Tue, 13 Jun 2017 16:11:13 +0000 (12:11 -0400)]
ecore-wl2: Add API function to get list of supported auxiliary hints

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add event and structure for auxiliary hints
Chris Michael [Tue, 13 Jun 2017 16:01:30 +0000 (12:01 -0400)]
ecore-wl2: Add event and structure for auxiliary hints

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas-wayland: Add aux_hint functions to Wayland Interface
Chris Michael [Tue, 13 Jun 2017 14:12:44 +0000 (10:12 -0400)]
ecore-evas-wayland: Add aux_hint functions to Wayland Interface

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoCanvas text cursor: add NULL checks for some functions
Daniel Hirt [Tue, 13 Jun 2017 11:48:50 +0000 (14:48 +0300)]
Canvas text cursor: add NULL checks for some functions

Passing a NULL cursor is permitted. Forgot to add to two functions
during port from EO.
Fixes some crashes.

7 years agoEfl.Ui.Slider: implement Efl.Ui.Progress.progress_min_max
Amitesh Singh [Tue, 13 Jun 2017 05:59:05 +0000 (14:59 +0900)]
Efl.Ui.Slider: implement Efl.Ui.Progress.progress_min_max

and move elm_slider_min_max_set/get as legacy APIs

ref T5361

7 years agointf: Efl.Ui.Progress: Add progress_min_max property
Amitesh Singh [Tue, 13 Jun 2017 05:42:27 +0000 (14:42 +0900)]
intf: Efl.Ui.Progress: Add progress_min_max property

We need this for slider and progressbar widgets

ref T5361

7 years agoRevert "evas: put events related pointer into a cow to reduce evas_object fat."
Carsten Haitzler (Rasterman) [Tue, 13 Jun 2017 02:08:55 +0000 (11:08 +0900)]
Revert "evas: put events related pointer into a cow to reduce evas_object fat."

This reverts commit f69686ba4023c7ddd83ea38000e8fa0c61818365.

this causes major crashes in e every time you move and resize a
window. i cant even debug it properly because i cant move or resize
windows to get terminals up to debug it... this is bad... so until a
fix is found better to go back to working...

7 years agoevas: put events related pointer into a cow to reduce evas_object fat.
Cedric Bail [Mon, 12 Jun 2017 18:41:25 +0000 (11:41 -0700)]
evas: put events related pointer into a cow to reduce evas_object fat.

7 years agoelementary: fix recursive content group calculation in genlist
SangHyeon Lee [Mon, 12 Jun 2017 17:13:02 +0000 (10:13 -0700)]
elementary: fix recursive content group calculation in genlist

Summary:
There are several problem is left on recursize content calc.
previously genlist only calculate size of layout class,
but after recursive content group calculation patch,
layout couldn't get proper size because sizing eval is
not pre-processed.

Test Plan: elementary test working fine.

Reviewers: jpeg, cedric, raster, conr2d

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
7 years agoevas: cleanup use of Eina_Cow during orientation set.
Cedric Bail [Mon, 12 Jun 2017 17:10:23 +0000 (10:10 -0700)]
evas: cleanup use of Eina_Cow during orientation set.

7 years agoevas: fix a stride value after calling evas_object_image_orient_set API
Jaeyong Hwang [Mon, 12 Jun 2017 17:06:14 +0000 (10:06 -0700)]
evas: fix a stride value after calling evas_object_image_orient_set API

Summary: Before the value of stride is calculated, the weight and height of the rotated image should be set.

Test Plan: {F1409510}

Reviewers: jpeg

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
7 years agoelementary: fix fallthrough warning.
Cedric Bail [Mon, 12 Jun 2017 17:04:27 +0000 (10:04 -0700)]
elementary: fix fallthrough warning.

7 years agoedje: fix unitialized warning.
Cedric Bail [Mon, 12 Jun 2017 17:04:10 +0000 (10:04 -0700)]
edje: fix unitialized warning.

7 years agoedje text: add a missing return macro
Youngbok Shin [Mon, 12 Jun 2017 13:33:00 +0000 (16:33 +0300)]
edje text: add a missing return macro

Summary:
RETURN_* macro does unref before exiting functions.
Must be called after using PROXY_DATA_GET macro.
@fix

Test Plan:
1. Run terminology
2. Open Setting
3. Check error messages when you change something from Setting.

Reviewers: herdsman, raster

Subscribers: cedric, jpeg

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

7 years agoevas textblock: fix evas test suite build errors
Youngbok Shin [Mon, 12 Jun 2017 13:31:04 +0000 (16:31 +0300)]
evas textblock: fix evas test suite build errors

Summary:
Fix build errors caused by recent patches for Text cursor.
@fix

Test Plan: run "make check"

Reviewers: herdsman, jpeg, raster

Subscribers: cedric

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

7 years agoText cursor: fix macOS build.
Mykyta Biliavskyi [Mon, 12 Jun 2017 10:44:55 +0000 (13:44 +0300)]
Text cursor: fix macOS build.

On macOS build failed with
lib/elementary/efl_ui_internal_text_interactive.c:801:50: error: too few
arguments to function call, expected 2, have 1

7 years agoevas: Fix use of invalid EO object
Jean-Philippe Andre [Mon, 12 Jun 2017 08:39:34 +0000 (17:39 +0900)]
evas: Fix use of invalid EO object

During a window destruction, the input devices are deleted and
removed from the internal devices list. Since 83d18617b4375
basic devices are children of a seat, which means that the seat
deletion was triggering the devices deletion as well. As a
consequence, we were walking an invalid list of devices.

I'm not sure we should have a list of children in the device
data and I'm also not sure we should have a list of devices in
evas, instead of just the list of seats. It's a bit messy right
now.

Ref T5540

7 years agoelm: rename elm slider to Efl.Ui.Slider
Amitesh Singh [Mon, 12 Jun 2017 07:06:22 +0000 (16:06 +0900)]
elm: rename elm slider to Efl.Ui.Slider

ref T5361

7 years agoelm slider: indicator_visible_mode - move API document at one place.
Amitesh Singh [Mon, 12 Jun 2017 06:02:14 +0000 (15:02 +0900)]
elm slider: indicator_visible_mode - move API document at one place.

7 years agoelm slider: remove *not* required set/get{} from eo file
Amitesh Singh [Mon, 12 Jun 2017 05:58:00 +0000 (14:58 +0900)]
elm slider: remove *not* required set/get{} from eo file

7 years agoelm hoversel: Clean up sizing_eval function
Jeeyong Um [Mon, 12 Jun 2017 06:55:25 +0000 (15:55 +0900)]
elm hoversel: Clean up sizing_eval function

7 years agoelm hoversel: Delay sizing_eval to prevent too frequent recalculations
Jeeyong Um [Mon, 12 Jun 2017 06:27:23 +0000 (15:27 +0900)]
elm hoversel: Delay sizing_eval to prevent too frequent recalculations

7 years agoefl.canvas: Add "seat" (by id) and "device" (by name) properties
Jean-Philippe Andre [Thu, 8 Jun 2017 02:49:07 +0000 (11:49 +0900)]
efl.canvas: Add "seat" (by id) and "device" (by name) properties

See d47197e65b59406e0f25c5a4db56e68da61bec30

@feature

7 years agoevas: Rename device Class to Type, remove Sub_Class
Jean-Philippe Andre [Mon, 12 Jun 2017 05:56:36 +0000 (14:56 +0900)]
evas: Rename device Class to Type, remove Sub_Class

1. The word "class" is a pain point with many languages where
   it's a keyword. Type is a little better. Also, the property
   was already named "device_type" and not "device_class".

2. Remove Efl.Input.Device.Sub_Class
   It's not used inside EFL upstream codebase, and unlikely to
   be used anywhere else (even in Tizen).

Hopefully no one used the Efl_ enum types. So far only the Evas_
types should be in used.

Ref T5540

7 years agoevas: Remove device "parent", "name" and "description" properties
Jean-Philippe Andre [Wed, 7 Jun 2017 08:36:50 +0000 (17:36 +0900)]
evas: Remove device "parent", "name" and "description" properties

Those are now merged with Efl.Object parent, name and comment.
The reasoning is that only seats can be parent devices; And name
and description are not only name clashes but also not extremely
useful anyway.

Tested with VNC.

Fixes T5540

7 years agoecore_evas: Document ecore_evas Wayland operations
Bryce Harrington [Mon, 12 Jun 2017 02:54:05 +0000 (11:54 +0900)]
ecore_evas: Document ecore_evas Wayland operations

Subscribers: cedric, jpeg

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

7 years agoevil: Fix edc scripts compilation on windows
Ivan Furs [Mon, 12 Jun 2017 02:50:54 +0000 (11:50 +0900)]
evil: Fix edc scripts compilation on windows

Fixes T5410

Summary: should fix the error T5410

Reviewers: vtorri, t.naumenko, cedric, raster, an.kroitor, rimmed, NikaWhite, FurryMyad

Subscribers: artem.popov, cedric, jpeg

Maniphest Tasks: T5410

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

7 years agoedje: Remove bool return from scale_set
Jean-Philippe Andre [Fri, 9 Jun 2017 07:51:43 +0000 (16:51 +0900)]
edje: Remove bool return from scale_set

It was always returning true. There is little point in returning
a bool here, an invalid scale value (eg. <= 0) wouuld lead to a
state where scale_get() != scale_set() and that's about it.

7 years agowidget: Implement scale from Efl.Ui.Base
Jean-Philippe Andre [Fri, 9 Jun 2017 07:47:42 +0000 (16:47 +0900)]
widget: Implement scale from Efl.Ui.Base

7 years agoedje: Move base_scale to Efl.Ui.Base
Jean-Philippe Andre [Fri, 9 Jun 2017 07:36:25 +0000 (16:36 +0900)]
edje: Move base_scale to Efl.Ui.Base

This API is used by elementary widgets like:
  edje_object_base_scale_get(elm_layout_edje_get(ly));

This means elm_layout in fact should also expose it directly.

Ref T5315

7 years agoelua - fix build for luajit2.1.0-beta3+
Carsten Haitzler (Rasterman) [Mon, 12 Jun 2017 02:14:16 +0000 (11:14 +0900)]
elua - fix build for luajit2.1.0-beta3+

it seems luajit (and lua) broke api again... removed a #define from
their headers from 5.1->5.2 of lua (and seemingly luajit2.1 too). :(

this should fix T2728

@fix

7 years agoelm test:image.zoomable: fix the compilation warnings
Amitesh Singh [Mon, 12 Jun 2017 01:19:28 +0000 (10:19 +0900)]
elm test:image.zoomable: fix the compilation warnings

this fixes below compile warnings.

"
 warning: format ‘%s’ expects argument of type ‘char *’,
 but argument 3 has type ‘void *’ [-Wformat=]
 printf("Successfully set the edje file: %s, group: %s\n",
        file, eina_list_nth(grps, 0));
"

7 years agoEfl text: shorten naming of methods
Daniel Hirt [Sun, 11 Jun 2017 21:16:40 +0000 (00:16 +0300)]
Efl text: shorten naming of methods

eo_prefix are set to "efl_text".
Also, "Efl.Text.Format" is shortened to now include the "_format"
prefix.
"Efl.Text.Font" keeps the "_font" prefix, for better readability.

7 years agoCanvas text: disable legacy_newline by default
Daniel Hirt [Wed, 31 May 2017 07:04:18 +0000 (10:04 +0300)]
Canvas text: disable legacy_newline by default

7 years agoGfx filters: set multiline to Ui.Text widget
Daniel Hirt [Wed, 31 May 2017 07:36:54 +0000 (10:36 +0300)]
Gfx filters: set multiline to Ui.Text widget

By default, multiline is disabled, so needs to enable this.

7 years agoUi text: set some default font and size
Daniel Hirt [Wed, 31 May 2017 07:50:55 +0000 (10:50 +0300)]
Ui text: set some default font and size

This should later be setup through the theme.
One option will be to use global text classes.
Until the above is finalized, at least set this font and size to make
setup of the widget a bit easier.

7 years agogfx_filter: add efl_style_gfx_filter
Daniel Hirt [Tue, 30 May 2017 10:48:05 +0000 (13:48 +0300)]
gfx_filter: add efl_style_gfx_filter

Also, rename the format string to 'gfx_filterstr' to match the other
strings.

Update the filter test to use this property.

7 years agogfx_filter: null-out freed pointer
Daniel Hirt [Tue, 30 May 2017 10:47:48 +0000 (13:47 +0300)]
gfx_filter: null-out freed pointer

7 years agoText: remove leftover printfs
Daniel Hirt [Sun, 11 Jun 2017 20:26:00 +0000 (23:26 +0300)]
Text: remove leftover printfs