platform/upstream/efl.git
8 years agoedje: unbreak EXTRA_DIST.
Cedric BAIL [Thu, 5 May 2016 18:39:59 +0000 (11:39 -0700)]
edje: unbreak EXTRA_DIST.

8 years agoElm icons: keep all old icons for compat
Dave Andreoli [Tue, 3 May 2016 18:07:04 +0000 (20:07 +0200)]
Elm icons: keep all old icons for compat

8 years agoAdd (quite) all the status icons
Dave Andreoli [Mon, 2 May 2016 21:41:17 +0000 (23:41 +0200)]
Add (quite) all the status icons

8 years agoAdd all the Action icons, and TODO placeholder for ALL FDO icon names.
Dave Andreoli [Mon, 2 May 2016 18:13:33 +0000 (20:13 +0200)]
Add all the Action icons, and TODO placeholder for ALL FDO icon names.

I really don't like the look of those new icons, will improve them in a second step

8 years agoInitial structure for a proper FDO compliant icon theme.
Dave Andreoli [Sun, 1 May 2016 14:52:45 +0000 (16:52 +0200)]
Initial structure for a proper FDO compliant icon theme.

The idea here is to provide a "real" fdo icon theme along the icons in the elm edje theme.

To minimize file redundancy the icons are profided directly in a fdo structure and picked
in icon_fdo.edc. Also I'm using all the icons in svg format so that we don't need to provide
all the creazy sizes as per fdo spec.

More icons will comes in the next commits

8 years agoEo composite: change composite objects to not be tied to parent
Tom Hacohen [Thu, 5 May 2016 15:08:08 +0000 (16:08 +0100)]
Eo composite: change composite objects to not be tied to parent

This commit breaks behaviour!
Re-parenting no longer detaches composite objects, so watch out.

Now you can have an object be a composite object of an object although
it's not its child. This allows widgets to do things like having an
object as the child of a child object while still making it a composite
object to the main object.

With this change, composite objects don't keep a reference to the child,
but instead composite "bonds" are implicitly removed when either the
parent or the child are destructed.

8 years agowayland: implement session recovery
Mike Blumenkrantz [Thu, 5 May 2016 14:45:59 +0000 (10:45 -0400)]
wayland: implement session recovery

add support for reconnecting wayland applications if the compositor dies

disconnect -> destroy gl ctx + image textures -> block rendering ->
reconnect -> create gl ctx -> create image textures -> unblock rendering ->
sprinkle special seasoning on top -> just like ma used to make

 #SamsungFeatures

@feature

8 years agoevas: add internal functions for unsetting+regenerating image data
Mike Blumenkrantz [Thu, 5 May 2016 14:45:04 +0000 (10:45 -0400)]
evas: add internal functions for unsetting+regenerating image data

in the event that the global gl context changes, all engine image data
must be destroyed and then re-created in order to continue rendering
successfully

8 years agowayland_egl: return immediately in eng_window_free() when null is passed
Mike Blumenkrantz [Thu, 5 May 2016 14:42:26 +0000 (10:42 -0400)]
wayland_egl: return immediately in eng_window_free() when null is passed

8 years agowayland_egl: unset global egl context if used wl_display changes
Mike Blumenkrantz [Thu, 5 May 2016 14:41:27 +0000 (10:41 -0400)]
wayland_egl: unset global egl context if used wl_display changes

as long as evas uses a global gl context any change to the wl_display
must trigger a full re-create on that context

8 years agowayland_egl: ensure gl context destruction when unsetting wl_display
Mike Blumenkrantz [Thu, 5 May 2016 14:38:31 +0000 (10:38 -0400)]
wayland_egl: ensure gl context destruction when unsetting wl_display

extra refcounting during setup in this case will prevent the context
destruction, leading to a dead gl context which is unable to render

8 years agoecore-wl2: null out subsurface pointers after destroying them
Mike Blumenkrantz [Thu, 5 May 2016 14:35:18 +0000 (10:35 -0400)]
ecore-wl2: null out subsurface pointers after destroying them

8 years agoevas: add a few null checks for e->engine.data.output
Mike Blumenkrantz [Thu, 5 May 2016 14:33:28 +0000 (10:33 -0400)]
evas: add a few null checks for e->engine.data.output

this can be null if engine info has not yet been set or if engine info
has been unset, leading to engine crashes. instead of adding null checks in
every engine, better to add the checks to the originating functions

someone with time to kill should go through all the EAPI functions and
add more checks

8 years agoevas: move Evas_VG_Data struct to separate header
Mike Blumenkrantz [Thu, 5 May 2016 14:31:54 +0000 (10:31 -0400)]
evas: move Evas_VG_Data struct to separate header

8 years agoevas: move Efl_Canvas_Polygon_Data struct to separate header
Mike Blumenkrantz [Thu, 5 May 2016 14:27:50 +0000 (10:27 -0400)]
evas: move Efl_Canvas_Polygon_Data struct to separate header

8 years agoeolian-cxx: Added test for the removal of the .Base class requirement
Felipe Magno de Almeida [Thu, 5 May 2016 00:13:48 +0000 (21:13 -0300)]
eolian-cxx: Added test for the removal of the .Base class requirement

Test creates class with the same name as the namespace of another class

8 years agoecore: add timeout promise test.
Cedric BAIL [Wed, 4 May 2016 22:42:23 +0000 (15:42 -0700)]
ecore: add timeout promise test.

8 years agoecore: silence warning in job test.
Cedric BAIL [Wed, 4 May 2016 22:41:37 +0000 (15:41 -0700)]
ecore: silence warning in job test.

8 years agoecore: add a timeout promise.
Cedric BAIL [Wed, 4 May 2016 21:44:56 +0000 (14:44 -0700)]
ecore: add a timeout promise.

8 years agoecore: rework efl_timer to be a proper eo object emiting signal.
Cedric BAIL [Wed, 4 May 2016 20:37:39 +0000 (13:37 -0700)]
ecore: rework efl_timer to be a proper eo object emiting signal.

8 years agoecore: remove timer dump logic as Eo and clouseau should give us that info.
Cedric BAIL [Tue, 3 May 2016 23:20:29 +0000 (16:20 -0700)]
ecore: remove timer dump logic as Eo and clouseau should give us that info.

8 years agoecore: fix split built.
Cedric BAIL [Tue, 3 May 2016 21:43:23 +0000 (14:43 -0700)]
ecore: fix split built.

8 years agoecore: rename ecore_timer to efl_timer.
Cedric BAIL [Tue, 3 May 2016 21:42:20 +0000 (14:42 -0700)]
ecore: rename ecore_timer to efl_timer.

8 years agoecore-audio: Fix issue of improper deleting of ecore_job
Chris Michael [Wed, 4 May 2016 15:40:29 +0000 (11:40 -0400)]
ecore-audio: Fix issue of improper deleting of ecore_job

This patch fixes a compiler warning where eo_del was being called on
an Ecore_Job.

ref c1141c7b0b09b23c802b27d8c2c2bbe91919121b

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoelput: Add API function to set pointer position on a given seat
Chris Michael [Wed, 4 May 2016 14:43:36 +0000 (10:43 -0400)]
elput: Add API function to set pointer position on a given seat

Small patch to add an API function that can be used to set the current
pointer position on a given seat name. This function (typically) will
be used inside an Ecore_Evas to "pointer warp".

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoelput: Add API function to get pointer position on a given seat
Chris Michael [Wed, 4 May 2016 14:20:04 +0000 (10:20 -0400)]
elput: Add API function to get pointer position on a given seat

Small patch to add an API function that can be used to retrieve
current pointer position on a given seat name.

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoelm_cnp: comment the debug macro
Amitesh Singh [Wed, 4 May 2016 10:58:56 +0000 (16:28 +0530)]
elm_cnp: comment the debug macro

It was accidently enabled in 1bc9483a82bf18be3

8 years agoeo: replace loop_get with object_find
Marcel Hollerbach [Wed, 4 May 2016 08:08:00 +0000 (10:08 +0200)]
eo: replace loop_get with object_find

Summary:
object_find is more generic, so other mechanisms can also reuse the
code.
The object itself has to support the function, so there is no need for
eo_isa which would have a negative performance impact.
The base class implementation calls interface_get on the parent, so a
override of the function can just call the super function to continue in
the recursion.

Test Plan: just run the eo test suite

Reviewers: raster, tasn, jpeg

Reviewed By: tasn, jpeg

Subscribers: felipealmeida, netstar, cedric, jpeg

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

8 years agoelm_win: move elm_win_raise into eo again.
Ji-Youn Park [Wed, 4 May 2016 07:19:32 +0000 (15:49 +0830)]
elm_win: move elm_win_raise into eo again.

elm_win_raise is used not only x but also wayland.
so I modify doc and move again this api to eo.

8 years agoEio: fixed eio_model_test_monitor_add
Larry Jr [Tue, 3 May 2016 21:19:26 +0000 (18:19 -0300)]
Eio: fixed eio_model_test_monitor_add

fix filename comparison in the test for deleted file

8 years agoecore: silent warnings by directly freeing.
Cedric BAIL [Tue, 3 May 2016 21:32:05 +0000 (14:32 -0700)]
ecore: silent warnings by directly freeing.

8 years agoecore: remove dead Ecore_Job eo object.
Cedric BAIL [Tue, 3 May 2016 20:31:16 +0000 (13:31 -0700)]
ecore: remove dead Ecore_Job eo object.

8 years agoEldbus: re-enable eldbus_tests_model by default
Larry Jr [Tue, 3 May 2016 19:21:29 +0000 (16:21 -0300)]
Eldbus: re-enable eldbus_tests_model by default

8 years agoEldbus: fixed eina_promise callback in eldbus test model
Larry Jr [Tue, 3 May 2016 19:15:07 +0000 (16:15 -0300)]
Eldbus: fixed eina_promise callback in eldbus test model

8 years agoecore_wl2: Check return of wl_display_dispatch()
Derek Foreman [Tue, 3 May 2016 18:52:03 +0000 (13:52 -0500)]
ecore_wl2: Check return of wl_display_dispatch()

If the compositor crashes at just the right time this dispatch can fail
and result in a stuck app spinning in a tight loop.  Fix it so we do a
proper shutdown in this case.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agowayland_shm: Fix extra buffer allocation on client shutdown
Derek Foreman [Mon, 2 May 2016 19:29:47 +0000 (14:29 -0500)]
wayland_shm: Fix extra buffer allocation on client shutdown

On shutdown we need to set wl_surface to NULL to let the engine know
there's nothing to write to - however we've been setting up an entirely
new outbuf instead of just changing the old one.

8 years agowayland_shm: Fix bad indenting
Derek Foreman [Mon, 2 May 2016 19:26:09 +0000 (14:26 -0500)]
wayland_shm: Fix bad indenting

8 years agowayland_shm: Fix dmabuf fallback to shm
Derek Foreman [Wed, 27 Apr 2016 16:41:13 +0000 (11:41 -0500)]
wayland_shm: Fix dmabuf fallback to shm

The outbuf code should free the surface structure, not the dmabuf
abstraction or a use after free occurs on fallback.

Re-organize some code to make sure we don't rely on anything that may
have already been freed.

Add a wl_surface_commit() to keep the animation timer alive through
the fallback process.

8 years agowayland_shm: Fix uninit variable
Derek Foreman [Tue, 26 Apr 2016 15:46:46 +0000 (10:46 -0500)]
wayland_shm: Fix uninit variable

also make it an Eina_Bool

8 years agoelementary: fix build with missing function.
Cedric BAIL [Tue, 3 May 2016 18:18:06 +0000 (11:18 -0700)]
elementary: fix build with missing function.

8 years agoecore-wl2: Formatting
Chris Michael [Tue, 3 May 2016 16:33:26 +0000 (12:33 -0400)]
ecore-wl2: Formatting

Minor formatting fix. No functional changes

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-evas-wayland: Remove include for old Ecore_Wayland library
Chris Michael [Tue, 3 May 2016 15:18:41 +0000 (11:18 -0400)]
ecore-evas-wayland: Remove include for old Ecore_Wayland library

This include is leftover from the porting to Ecore_Wl2. Remove
unused include for old Ecore_Wayland library

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-wayland: Deprecate Ecore_Wayland library
Chris Michael [Tue, 3 May 2016 12:35:48 +0000 (08:35 -0400)]
ecore-wayland: Deprecate Ecore_Wayland library

This patch deprecates the Ecore_Wayland library with a warning to not
use it. This (imo) is a better method of deprecation rather than
adding EINA_DEPRECATED to every function.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoelm_win: move API related with backed engine to legacy
Ji-Youn Park [Tue, 3 May 2016 10:14:03 +0000 (18:44 +0830)]
elm_win: move API related with backed engine to legacy

There are several elm_win apis releated with backed engine.
we need to move these kind of api form eo to legacy.

8 years agotests: eio: re-enable eio test cases
Stefan Schmidt [Tue, 3 May 2016 09:29:13 +0000 (11:29 +0200)]
tests: eio: re-enable eio test cases

Have been disabled with 0c76f82a. They pass here so re-enabling.

8 years agoEo define class: Don't force EWAPI for class_get().
Tom Hacohen [Tue, 3 May 2016 08:53:43 +0000 (09:53 +0100)]
Eo define class: Don't force EWAPI for class_get().

Because we were forcing EWAPI in this macro, one couldn't create a class
that is "static" or even just private or the module. The symbol was
always exposed.
Since in C the attributes of a function are set based on the first
declaration, we don't need to specify any attributes in this macro and
we can just rely on them being specified in the declaration. So for
example, for class "foo":

foo.h:
EWAPI const Eo_Class *foo_class_get(...);

foo.c:
const Eo_Class *foo_class_get(...);

Would give the desired results, a class would be EWAPI. This is already
done automatically for all of the classes using Eolian. Because of the
lack of specifiers, the default visibility will now be the default
visibility based on compiler flags and settings.

Thanks to JP for reporting this issue.

This can potentially (but very unlikely) break things.

8 years agoelm entry: remove unused funtions
Thiep Ha [Tue, 3 May 2016 15:05:42 +0000 (15:05 +0000)]
elm entry: remove unused funtions

The _elm_entry_entry_paste is removed from elm_cnp.c.
It is unused now. We can remove it and related function.

8 years agoelm cnp/Wl: Remove duplicated data receive callback
Thiep Ha [Tue, 3 May 2016 14:58:10 +0000 (14:58 +0000)]
elm cnp/Wl: Remove duplicated data receive callback

If we do drag & drop and then do copy & paste, both _wl_selection_receive
and _wl_dnd_receive are called for one action (dnd or cnp). It is reduntdant.
We only need one data received callback to handle two cases dnd and cnp.

8 years agoecore wayland: add selection type
Thiep Ha [Tue, 3 May 2016 10:42:31 +0000 (10:42 +0000)]
ecore wayland: add selection type

We have copy & paste and drag & drop selection types, but we cannot
distinguish between these two types when requesters receive data
from data ready event.
This patch adds a new enum to help selection requesters distinguish
between two selection types and have suitable actions for each type.

8 years agoelm cnp/wl: add uri data type checking
Thiep Ha [Tue, 3 May 2016 10:41:00 +0000 (10:41 +0000)]
elm cnp/wl: add uri data type checking

When selection owner provides uri type (uri/text-list),
it should check if data is in correct format.

8 years agoelm cnp/Wl: set selection for all data types
Thiep Ha [Tue, 3 May 2016 09:49:14 +0000 (09:49 +0000)]
elm cnp/Wl: set selection for all data types

Currently, not all selection data types are set.
This patch sets selection for all suitable types that we supported.

8 years agoelm cnp/Wl: Remove duplicated data send callback
Thiep Ha [Tue, 3 May 2016 09:44:16 +0000 (09:44 +0000)]
elm cnp/Wl: Remove duplicated data send callback

If we do drag & drop and then do copy & paste, both _wl_selection_send
and _wl_dnd_send are called for one action (dnd or cnp). It is reduntdant.
We only need one callback to handle two cases dnd and cnp.

8 years agoelm dnd/wl: add types' notify handler
Thiep Ha [Tue, 3 May 2016 09:30:39 +0000 (09:30 +0000)]
elm dnd/wl: add types' notify handler

This patch adds notify handlers for types.
It provides different ways to handle different data types.

8 years agoelm dnd/wl: add type converters
Thiep Ha [Tue, 3 May 2016 09:07:48 +0000 (09:07 +0000)]
elm dnd/wl: add type converters

we support different types for DnD, but there is no converters.
This patch adds converters for types, so that we can send
different data for different types.

8 years agotests: eio: use the correct eina_promise_* functions
Stefan Schmidt [Tue, 3 May 2016 07:36:37 +0000 (09:36 +0200)]
tests: eio: use the correct eina_promise_* functions

When these changes got it with 0c76f82a31b1ad06a4da4c12f1a02139e0d0c6fa
they used the non existing symbols ecore_promise_value_get and
ecore_promise_then (most likely due to an unfinished refactoring)

Make sure we actually use the correct eina_promise_ symbols and add NULL
for the error callback which is now needed.

8 years agoRevert "genlist: Change group_index swallow parts to be squares."
Jaehyun Cho [Tue, 3 May 2016 02:18:24 +0000 (11:18 +0900)]
Revert "genlist: Change group_index swallow parts to be squares."

This reverts commit 5f59e134ebe4347ee6b7dafe63f75e9dbd813d82.

This causes that icon region of genlist group_index item is displayed
although icon is not set.

8 years agoecore: add test case for Efl.Loop.Job.
Cedric Bail [Tue, 3 May 2016 01:14:44 +0000 (18:14 -0700)]
ecore: add test case for Efl.Loop.Job.

8 years agoecore: fix promise test wrong use of EINA_UNUSED.
Cedric Bail [Tue, 3 May 2016 01:13:08 +0000 (18:13 -0700)]
ecore: fix promise test wrong use of EINA_UNUSED.

8 years agoecore: add Efl.Loop.Job promise.
Cedric Bail [Tue, 26 Apr 2016 19:56:53 +0000 (12:56 -0700)]
ecore: add Efl.Loop.Job promise.

8 years agoRevert "efreetd - reduce memory usage by using stringshare much more"
Mike Blumenkrantz [Tue, 3 May 2016 01:00:39 +0000 (21:00 -0400)]
Revert "efreetd - reduce memory usage by using stringshare much more"

partially reverts e4d815dc48c660a336670ec3cc67e6becbdcacfc

this caused efreetd to crash almost immediately due to non-stringshared
strings being used in a stringshare-only hash data descriptor

8 years agoEldbus: eldbus_model_test disable by default
Larry Jr [Mon, 2 May 2016 21:37:04 +0000 (18:37 -0300)]
Eldbus: eldbus_model_test disable by default

This test assumes an existing dbus-daemon running.

8 years agodocs: elm_clock: enhance and change elm_clock EO file documentation.
Stefan Schmidt [Fri, 29 Apr 2016 09:12:37 +0000 (11:12 +0200)]
docs: elm_clock: enhance and change elm_clock EO file documentation.

Mostly preperty description harmonising and some other smaller changes.

8 years agodocs: elm_check: fully document the check widget
Stefan Schmidt [Fri, 29 Apr 2016 08:40:54 +0000 (10:40 +0200)]
docs: elm_check: fully document the check widget

8 years agoelementary button: fix a anchor style edc error.
Hermet Park [Mon, 2 May 2016 07:53:37 +0000 (16:53 +0900)]
elementary button: fix a anchor style edc error.

keep clicked description since inherited program still requires it.

8 years agoRevert "tiff: disable by default as it is full of CVE with apparently no chance to...
Carsten Haitzler (Rasterman) [Sun, 1 May 2016 22:52:48 +0000 (07:52 +0900)]
Revert "tiff: disable by default as it is full of CVE with apparently no chance to get them fixed."

This reverts commit b8860c88f52c7ea3576f88f9399b777646975bd5.

i wouldn't call this full of CVE's:

http://www.cvedetails.com/product/3881/Libtiff-Libtiff.html?vendor_id=2224

i do notice various CVE's on libtiff's mailing list have had patches
committed. the CVE db doesn't track if the CVE has been fixed by
upstream (in an easy to find way) and in which version or on what date so
the CVE db simply is all CVE's since the dawn of time that were ever filed.

8 years agoefl: remove eina_promise typedef
Marcel Hollerbach [Sun, 1 May 2016 15:01:22 +0000 (17:01 +0200)]
efl: remove eina_promise typedef

fixes the following warnings:
  /usr/local/include/efl-1/Efl_Model_Common.h:14:30: warning: redefinition of typedef 'Eina_Promise' is a
        C11 feature [-Wtypedef-redefinition]
  typedef struct _Eina_Promise Eina_Promise;
                               ^
  /usr/local/include/eina-1/eina/eina_promise.h:10:30: note: previous definition is here
  typedef struct _Eina_Promise Eina_Promise;

To remove the typedef i had to cleanup the includes of header in
evas_canvas3d_eet.c.

8 years agoelm_genlist: throw CRI when group item insertion fails
Mike Blumenkrantz [Sat, 30 Apr 2016 18:31:29 +0000 (14:31 -0400)]
elm_genlist: throw CRI when group item insertion fails

this really needs a better solution since it results in a blank genlist
item space, with the item itself typically located somewhere offscreen due
to caching

8 years agoelm_genlist: when appending items to the parent, prepend to the parent
Mike Blumenkrantz [Sat, 30 Apr 2016 18:26:51 +0000 (14:26 -0400)]
elm_genlist: when appending items to the parent, prepend to the parent

the parent/group item is located after its child items in the list of items,
so if an item is appended to the parent's list of items then it must be
prepended to the parent or else it will end up being in the wrong group

@fix

8 years agoelm_genlist: accurately handle contents for cached items
Mike Blumenkrantz [Sat, 30 Apr 2016 17:53:46 +0000 (13:53 -0400)]
elm_genlist: accurately handle contents for cached items

more fixes for the comically unreviewed revision from elm which continues
to cause bugs months after it was pushed

ref 4c86a66f28876b68e92a90c8f741eed1130dd034 (elm)
ref e88423e9948f0c39d6b16f9c33e7583545e525f1

8 years agoelm_genlist: outdent _item_content_realize() harder
Mike Blumenkrantz [Sat, 30 Apr 2016 17:48:33 +0000 (13:48 -0400)]
elm_genlist: outdent _item_content_realize() harder

no functional changes

8 years agospin interface: common interface for flipselector and spinner
Yeshwanth Reddivari [Fri, 29 Apr 2016 23:49:12 +0000 (16:49 -0700)]
spin interface: common interface for flipselector and spinner

Summary:
Added common interface for flipselector and spinner.
Implemented APIs of spinner like min_max_set, step_set, value_set etc in flipselector.

Test Plan: elementary_test

Reviewers: raster, jpeg, singh.amitesh, woohyun, SanghyeonLee, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
8 years agotiff: disable by default as it is full of CVE with apparently no chance to get them...
Cedric Bail [Fri, 29 Apr 2016 21:22:01 +0000 (14:22 -0700)]
tiff: disable by default as it is full of CVE with apparently no chance to get them fixed.

This can still be manually turned on if you need it.

8 years agoEldbus: fixed property_set in Eldbus.Model_Proxy
Larry Jr [Fri, 29 Apr 2016 22:39:37 +0000 (19:39 -0300)]
Eldbus: fixed property_set in Eldbus.Model_Proxy

8 years agoeio: Fix unused variable warnings in test
Felipe Magno de Almeida [Fri, 29 Apr 2016 20:32:23 +0000 (17:32 -0300)]
eio: Fix unused variable warnings in test

Use of EINA_UNUSED in unused parameters

8 years agoeolian: Fix promise generation with multiple parameters
Felipe Magno de Almeida [Fri, 29 Apr 2016 20:14:54 +0000 (17:14 -0300)]
eolian: Fix promise generation with multiple parameters

When generating multiple parameters, they inadvertedly got
replaced by __eo_promise. Replacing all arguments to the
promise pointer.

8 years agoEfl, Eio, Eldbus, Elementary: new model API use eina_promise
Larry Jr [Wed, 20 Apr 2016 20:07:53 +0000 (17:07 -0300)]
Efl, Eio, Eldbus, Elementary: new model API use eina_promise

Efl - efl_model_base changed to use eina_promise
Eio - eio_model use efl_model_base with promise
Eldbus - elddbus models use promise now
Elementary - elm_view_list and elm_view_form use new models with promise

updated all related examples and tests

8 years agoEo keyed data: Refactor the code so it's mostly shared.
Tom Hacohen [Fri, 29 Apr 2016 12:43:36 +0000 (13:43 +0100)]
Eo keyed data: Refactor the code so it's mostly shared.

The code was redundant though essentially the same. This refactoring
removes a lot of this code and made everything shared.

8 years agoEo keyed data: Unify node cleanup code.
Tom Hacohen [Fri, 29 Apr 2016 12:20:21 +0000 (13:20 +0100)]
Eo keyed data: Unify node cleanup code.

8 years agoEo keyed data: No need to register to see if a subobject was deleted.
Tom Hacohen [Fri, 29 Apr 2016 12:13:00 +0000 (13:13 +0100)]
Eo keyed data: No need to register to see if a subobject was deleted.

This is completely unnecessary. We are holding a reference to the
object, it can't get deleted under our feet.

8 years agoEo keyed data: Clean up code and fix a bug with 'Value'.
Tom Hacohen [Fri, 29 Apr 2016 12:08:07 +0000 (13:08 +0100)]
Eo keyed data: Clean up code and fix a bug with 'Value'.

This code is an absolute mess. This is the first step towards fixing that.
This cleanup let me find a bug that would have printed errors when using
Eina_Value so I fixed that too.

8 years agogenlist: Change group_index swallow parts to be squares.
Jaehyun Cho [Fri, 29 Apr 2016 10:59:42 +0000 (19:59 +0900)]
genlist: Change group_index swallow parts to be squares.

"elm.swallow.icon" and "elm.swallow.end" of group_index item were not
squrares. So change those swallow parts to be squares like default
item's swallow parts.

8 years agoEdje edit: remove color generate from SPACER source.
Mykyta Biliavskyi [Fri, 29 Apr 2016 08:25:41 +0000 (11:25 +0300)]
Edje edit: remove color generate from SPACER source.

It is possible situation when SPACER structure has colors values.
For example:
group { name: "abc";
  parts {
    part { name: "rect"; type: RECT;
      description { "default" 0.0;
        color: 7 7 7 255;
      }
    }
  }
}
group { name:"abc_2";
  inherit: "abc";
  parts {
    part { name: "rect"; type: SPACER;
    }
  }
}
To avoid failing compilation of generated source code, need avoid
generate color source code for a SPACER part.

8 years agoElm_Image: add and remove eo properties related to image scaling
Jaeun Choi [Fri, 29 Apr 2016 02:50:59 +0000 (11:50 +0900)]
Elm_Image: add and remove eo properties related to image scaling

This patch adds scale_type and scalalable property
and removes fill_inside and aspect_fixed property

8 years agoEdje Edit: Fix compilation warning
Jean-Philippe Andre [Thu, 28 Apr 2016 07:05:00 +0000 (16:05 +0900)]
Edje Edit: Fix compilation warning

8 years agoEdje: Add test case showing lifecycle of proxy object
Jean-Philippe Andre [Fri, 29 Apr 2016 04:19:20 +0000 (13:19 +0900)]
Edje: Add test case showing lifecycle of proxy object

This is for efl_content_get proxy objects (BOX & TABLE).

8 years agoelementary: Update icon UI to split out elm icons
Andy Williams [Thu, 28 Apr 2016 23:00:21 +0000 (00:00 +0100)]
elementary: Update icon UI to split out elm icons

Make it clearer that elementary is diffferent

8 years agoElm combobox: composite attach objects after reparenting.
Tom Hacohen [Thu, 28 Apr 2016 14:54:34 +0000 (15:54 +0100)]
Elm combobox: composite attach objects after reparenting.

This fixes the segfault reported by Jack.

The problem was that the object was being reparented and thus
removed from the composition and never added back.

8 years agoelementary: remove fdo caching and fallback code
Andy Williams [Thu, 28 Apr 2016 14:31:55 +0000 (15:31 +0100)]
elementary: remove fdo caching and fallback code

The hicolor fallback requirement is handled by efreet
and the usage of fdo is user specified now not by code.
This means the only (theoretical) way this could be a
problem is if the user removes a theme.
This seems like a good tradeoff to remove the overhead
and enable the apps to switch icons based on config change.

8 years agoelementary: Don't force elm theme over fdo icons
Andy Williams [Thu, 28 Apr 2016 09:27:56 +0000 (10:27 +0100)]
elementary: Don't force elm theme over fdo icons

Make sure we don't mmap icons if we're using external sources

8 years agoEdje_Edit: update function that return image usage to include sets
Vitalii Vorobiov [Thu, 28 Apr 2016 12:38:50 +0000 (15:38 +0300)]
Edje_Edit: update function that return image usage to include sets

Image can be also used not only inside of any image parts, but also
inside of any sets (and plenty of times)

8 years agoEdje_Edit: API to delete set of images
Vitalii Vorobiov [Thu, 28 Apr 2016 12:06:20 +0000 (15:06 +0300)]
Edje_Edit: API to delete set of images

Allow to delete set if it is not used by any part
Function to check if set is used by any part is:
edje_edit_set_usage_list_get

Since it uses same struct as image_used_list_get function, it
can be freed by edje_edit_image_usage_list_free.

8 years agoEdje_Edit: setter and getter for set image's scale_by
Vitalii Vorobiov [Wed, 27 Apr 2016 13:34:02 +0000 (16:34 +0300)]
Edje_Edit: setter and getter for set image's scale_by

edje_edit_image_set_image_border_scale_set
edje_edit_image_set_image_border_scale_get

8 years agoEdje_Edit: functions to set and get set's images border
Vitalii Vorobiov [Wed, 27 Apr 2016 13:23:43 +0000 (16:23 +0300)]
Edje_Edit: functions to set and get set's images border

edje_edit_image_set_image_border_set
edje_edit_image_set_image_border_get

8 years agoEdje_Edit: setters and getters for set's image size (min and max)
Vitalii Vorobiov [Wed, 27 Apr 2016 12:42:12 +0000 (15:42 +0300)]
Edje_Edit: setters and getters for set's image size (min and max)

Functions are:
edje_edit_image_set_image_min_get
edje_edit_image_set_image_min_set
edje_edit_image_set_image_max_get
edje_edit_image_set_image_max_set

8 years agoEdje_Edit: some API to manipulate set's images
Vitalii Vorobiov [Wed, 27 Apr 2016 10:58:44 +0000 (13:58 +0300)]
Edje_Edit: some API to manipulate set's images

get list of images of set (edje_edit_image_set_images_list_get)
add image to set (edje_edit_image_set_image_add)
delete image from set by it's place (edje_edit_image_set_image_del)

8 years agoEdje_Edit: image set API
Vitalii Vorobiov [Wed, 27 Apr 2016 08:52:04 +0000 (11:52 +0300)]
Edje_Edit: image set API

list of sets (edje_edit_image_set_list_get)
renaming set (edje_edit_image_set_rename)
add new set (edje_edit_image_set_add)
set's id (edje_edit_image_set_id_get)

8 years agoEdje_Edit: API to check if given name of "image set" is exist
Vitalii Vorobiov [Tue, 26 Apr 2016 12:04:46 +0000 (15:04 +0300)]
Edje_Edit: API to check if given name of "image set" is exist

edje_edit_image_set_exists

8 years agoEdje_Edit: get "set's name" if it was set as image normal or tween
Vitalii Vorobiov [Tue, 26 Apr 2016 11:43:47 +0000 (14:43 +0300)]
Edje_Edit: get "set's name" if it was set as image normal or tween

Sets and Images, they might have same id but different names

8 years agoRevert "genlist: recalc item size after item content field updated"
SangHyeon Lee [Thu, 28 Apr 2016 07:00:00 +0000 (16:00 +0900)]
Revert "genlist: recalc item size after item content field updated"

This reverts commit b48d3eb04e4475cf160deedaa3791834fa67ac9f.

This patch can be occurred performance issue.
update is needed for only non-homogeneous case.
I'll revert patch and update new patch in phabricator for check.

8 years agoRevert "genlist: scroll to item when calc is done"
SangHyeon Lee [Thu, 28 Apr 2016 06:58:38 +0000 (15:58 +0900)]
Revert "genlist: scroll to item when calc is done"

This reverts commit 87b12327c3356ac8233cb5a08260625221239153.

This patch occurred some side effect.
Need to fix the code without any side effect.