platform/upstream/efl.git
8 years agowayland_shm: Fix more dmabuf failure corner cases
Derek Foreman [Fri, 3 Jun 2016 21:27:14 +0000 (16:27 -0500)]
wayland_shm: Fix more dmabuf failure corner cases

With the exynos allocator a failure can happen during a resize, and the
resize path wasn't properly falling back to wl_shm buffering.

8 years agopsd_loader: Fix bad assumption about signedness of chars
Derek Foreman [Fri, 3 Jun 2016 21:25:50 +0000 (16:25 -0500)]
psd_loader: Fix bad assumption about signedness of chars

Whether "char" is signed or unsigned is architecture dependent, so if we
know we need a -1 in a char type we must declared it to be signed.

8 years agoecore_anim: Fix bad assumption about signedness of chars
Derek Foreman [Fri, 3 Jun 2016 21:24:26 +0000 (16:24 -0500)]
ecore_anim: Fix bad assumption about signedness of chars

Whether "char" is signed or unsigned is architecture dependent, so if we
know we need a -1 in a char type we must declared it to be signed.

8 years agoeina: Remove Eina_Promise* parameter in promise callback
Felipe Magno de Almeida [Fri, 3 Jun 2016 21:15:57 +0000 (18:15 -0300)]
eina: Remove Eina_Promise* parameter in promise callback

Remove not very useful parameter to eina_promise_then callbacks.

8 years agoeolian-cxx: Fix C++ example compilation
Felipe Magno de Almeida [Fri, 3 Jun 2016 19:54:16 +0000 (16:54 -0300)]
eolian-cxx: Fix C++ example compilation

8 years agoeina: Fix examples using new Eina_Promise semantics
Felipe Magno de Almeida [Fri, 3 Jun 2016 19:53:54 +0000 (16:53 -0300)]
eina: Fix examples using new Eina_Promise semantics

8 years agoeina: Remove unnecessary indirection to promises
Felipe Magno de Almeida [Fri, 3 Jun 2016 19:52:03 +0000 (16:52 -0300)]
eina: Remove unnecessary indirection to promises

Now when dealing with pointer types, we will not get pointer to
pointer semantics in callbacks and eina_promise_owner_value_set
for Eina_Promise.

It will work as expected:

Eina_Promise_Owner* promise = eina_promise_add();

void* p = malloc(sizeof(T));
eina_promise_owner_value_set(promise, p, &free);

8 years agoautotools: use DISTCLEAN rules to properly destroy files.
Cedric BAIL [Fri, 3 Jun 2016 18:11:05 +0000 (11:11 -0700)]
autotools: use DISTCLEAN rules to properly destroy files.

8 years agoector: variable in _SOURCES do not work.
Cedric BAIL [Fri, 3 Jun 2016 18:10:27 +0000 (11:10 -0700)]
ector: variable in _SOURCES do not work.

This fix the left over etc .deps during make distcheck.

8 years agowayland_shm: Add exynos allocator for dmabuf
Derek Foreman [Thu, 2 Jun 2016 12:06:26 +0000 (07:06 -0500)]
wayland_shm: Add exynos allocator for dmabuf

Allows clients on exynos hardware to allocate GEM buffer objects
to back DMAbuf buffers.

8 years agowayland_shm: Abstract out dmabuf management
Derek Foreman [Wed, 1 Jun 2016 20:52:05 +0000 (15:52 -0500)]
wayland_shm: Abstract out dmabuf management

Split out the intel specific stuff into an abstraction in preparation for
adding exynos support.

8 years agoEina: Fix eina_promise_all refcount ordering problem
Larry Jr [Thu, 2 Jun 2016 16:59:23 +0000 (13:59 -0300)]
Eina: Fix eina_promise_all refcount ordering problem

The call to eina_promise_then steals the first ref'count, so it is
possible that the promise is freed after the eina_promise_then,
so we need to eina_promise_ref before eina_promise_then.

8 years agoevas: Get pixels from rendered 3D scene
Oleksandr Shcherbina [Fri, 3 Jun 2016 11:22:33 +0000 (14:22 +0300)]
evas: Get pixels from rendered 3D scene

Summary:
Implemented interface Efl.Gfx.Buffer functions bufer_map/unmap for Efl.Canvas3D.Scene.
Added function e3d_drawable_texture_rendered_pixels_get to module evas_gl_3d
to getting pixels from FBO. Added wrappers for functions
e3d_drawable_texture_rendered_pixels_get and e3d_drawable_texture_id_get
to have possibility call it through engine functions.

Reviewers: cedric, Hermet, raster, jpeg

Reviewed By: jpeg

Subscribers: jpeg

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

8 years agoevas: fix huge memory leak for non-async rendering
Jean Guyomarc'h [Fri, 3 Jun 2016 10:08:40 +0000 (12:08 +0200)]
evas: fix huge memory leak for non-async rendering

So... I had issues with evas-fb engine which was massively leaking,
one image per frame.
After investigating a bit with @cedric on IRC, the reference count
of the cache entries was always 2 before the engine dropped.
So, for each frame with an animation, we could never drop a cache
entry, leading to a trumendous amount of memory leaking.

Now for non-async rendering, we copy the behaviour of
evas_render_pipe_wakeup() which is called in async-mode,
and actually drops a reference in the cache entry.

Fixes T3763

8 years agoedje_edit: add API for set/get part item
Vyacheslav Reutskiy [Fri, 3 Jun 2016 09:26:57 +0000 (12:26 +0300)]
edje_edit: add API for set/get part item

8 years agoecore timeouts - dont crash on cancel
Carsten Haitzler (Rasterman) [Fri, 3 Jun 2016 08:57:58 +0000 (17:57 +0900)]
ecore timeouts - dont crash on cancel

this fixes a nasty double deletion on cancel of timeouts. at least for
now as long as we have promises.

8 years agofix warning in build with uninit variable in generic loaders for xcf
Carsten Haitzler (Rasterman) [Fri, 3 Jun 2016 09:07:22 +0000 (18:07 +0900)]
fix warning in build with uninit variable in generic loaders for xcf

8 years agoelm_image: fix break related with elm image error enum
Ji-Youn Park [Fri, 3 Jun 2016 08:44:37 +0000 (17:14 +0830)]
elm_image: fix break related with elm image error enum

8 years agoEfl.Pack: Replace pack_direction with Efl.Orientation
Jean-Philippe Andre [Fri, 3 Jun 2016 06:55:29 +0000 (15:55 +0900)]
Efl.Pack: Replace pack_direction with Efl.Orientation

Since I first made the pack_direction before orientation
existed, the names didn't match. This should improve API
consistency.

8 years agoFix legacy name of elm_win_efl_screen_dpi_get()
Dave Andreoli [Fri, 3 Jun 2016 06:50:58 +0000 (08:50 +0200)]
Fix legacy name of elm_win_efl_screen_dpi_get()

...spank again goes to Ji-Youn Park, that insist to not even try his work

8 years agoelm_win: remove main_menu, window_id, fake_canvas property from eo
Ji-Youn Park [Fri, 3 Jun 2016 06:36:13 +0000 (15:06 +0830)]
elm_win: remove main_menu, window_id, fake_canvas property from eo

8 years agoelm_test: Add test case for event refeed
Jean-Philippe Andre [Fri, 3 Jun 2016 02:56:57 +0000 (11:56 +0900)]
elm_test: Add test case for event refeed

Not sure if this test case is really good, but it was
necessary to prove that input event refeed can work from
application side. This is a feature that should work
but shouldn't be used :)

8 years agoelm_win: Forward events between window and evas
Jean-Philippe Andre [Thu, 2 Jun 2016 05:36:55 +0000 (14:36 +0900)]
elm_win: Forward events between window and evas

This does:
1. Forward keyboard events from evas to win
2. Allow feeding external input events

Input events can be faked by apps by simply forging
eo objects of the proper type (key or pointer evt) and
calling eo_event_callback_call().

Such events will be forwarded to the internal Evas, and
some bool flags prevent infinite refeeding loops.

efl_event_dup() returns fake events for this to work.

@feature

8 years agoelm: Partially revert "elementary: avoid random memory access."
Jean-Philippe Andre [Fri, 3 Jun 2016 03:01:35 +0000 (12:01 +0900)]
elm: Partially revert "elementary: avoid random memory access."

This reverts commit ac5a0b7e79d6b32285bd7b794f050826f38cc7c2.

I added assert(pd == sd) in the modified code and couldn't find
anything suspicious. The proper class is used in eo_data_scope_get().
I also can't find a crash or a bug currently in hover. I know there
was a problem earlier, but that was fixed in 3092e08a83f754ba8d49c.

Now, if there is still a problem, we should check it carefully.
Pinging @cedric

8 years agoEfl.Ui.Box: Fix direction set
Jean-Philippe Andre [Thu, 2 Jun 2016 09:32:47 +0000 (18:32 +0900)]
Efl.Ui.Box: Fix direction set

VERTICAL means UP but UP was ignored...

8 years agoedje_edit: add API for get part item attributes by item index
Vyacheslav Reutskiy [Thu, 2 Jun 2016 14:40:00 +0000 (17:40 +0300)]
edje_edit: add API for get part item attributes by item index

Cedric revert patch 6f7608befd006f8076d237bee5d17c9e9e1e09ac same days
ago.

<quote Cedric>
Your patch 6f7608befd006f8076d237bee5d17c9e9e1e09ac did break elemines
which does relly on the proper index to be given to it. I think
Edje_Edit should be fine and use the index if no name is provided (See
edje_load.c around L1180). In all case this was clearly an ABI break and
needed to be reverted.
</quote Cedric>

So now edje_cc not guarantee name for part items. This is bad, because
edje_edit use item name for access to item attributes. If item have not
name we cann't get it attributes, because edje_edit compare the given
name with part items name from edj-file, strcmp dislake NULL args.
For now I see one way mark all edje_edit_part_item* APIs as deprecated
and add new APIs for manage part items by index.

For clearly and history:
The eason for revert - https://phab.enlightenment.org/D3820
The proposed solution - https://phab.enlightenment.org/D3907

8 years agoexamples: elementary: fix the wrong spell in comment.
Jaehwan Kim [Wed, 1 Jun 2016 04:22:14 +0000 (13:22 +0900)]
examples: elementary: fix the wrong spell in comment.

8 years agoelementary: avoid random memory access.
Cedric BAIL [Fri, 3 Jun 2016 00:20:16 +0000 (17:20 -0700)]
elementary: avoid random memory access.

It seems that this content_get function are not getting the data pointer
they expect at all.

8 years agoelementary: make eo_provider_find lookup in both eo and elementary parent hierarchy.
Cedric BAIL [Thu, 2 Jun 2016 19:47:54 +0000 (12:47 -0700)]
elementary: make eo_provider_find lookup in both eo and elementary parent hierarchy.

We can not assume that the elementary parent will be also somewhere in the eo parent
hierarchy. We need to explore both when doing an eo_provider_find in elementary for it
to be really useful.

8 years agoevas: attempt to fix massive memory leak in the fb engine.
Cedric BAIL [Thu, 2 Jun 2016 17:53:42 +0000 (10:53 -0700)]
evas: attempt to fix massive memory leak in the fb engine.

T3763

8 years agoemotion: properly fix build of vlc generic player.
Cedric BAIL [Thu, 2 Jun 2016 17:43:29 +0000 (10:43 -0700)]
emotion: properly fix build of vlc generic player.

8 years agoevas: correctly handle dependencies of evas generic loaders.
Cedric BAIL [Thu, 2 Jun 2016 17:43:04 +0000 (10:43 -0700)]
evas: correctly handle dependencies of evas generic loaders.

8 years agoautotools: we can't destroy this files as it break a make clean all cycle.
Cedric BAIL [Thu, 2 Jun 2016 17:42:21 +0000 (10:42 -0700)]
autotools: we can't destroy this files as it break a make clean all cycle.

8 years agoRevert "Revert "elput: add missing dependency on libudev""
Chris Michael [Thu, 2 Jun 2016 16:00:32 +0000 (12:00 -0400)]
Revert "Revert "elput: add missing dependency on libudev""

Apparently, libudev is not thread-safe which means we cannot use Eeze
for getting the udev but rather need to actually use libudev, so those
revert needs to be reverted.

This reverts commit 354bc66d0d58a74b0464275e865a9cc6c920a538.

8 years agobuild: use the normal efl tree macros for dependency handling
Stefan Schmidt [Thu, 2 Jun 2016 15:20:14 +0000 (17:20 +0200)]
build: use the normal efl tree macros for dependency handling

This should hopefully be the last fix for the merged emotion generic player.

8 years agoRevert "elput: Use Eeze function to get the udev to create context with"
Mike Blumenkrantz [Thu, 2 Jun 2016 15:12:06 +0000 (11:12 -0400)]
Revert "elput: Use Eeze function to get the udev to create context with"

This reverts commit 7b3d20371e8095207c4bafb3684b8a30d4ca6895.

using a separate context was intentional here since libudev is not threadsafe
and this will crash

8 years agoRevert "elput: add missing dependency on libudev"
Chris Michael [Thu, 2 Jun 2016 14:26:38 +0000 (10:26 -0400)]
Revert "elput: add missing dependency on libudev"

A better fix to not use libudev functions has been pushed previously,
so there is no need to add an extra dependency on libudev as we use
Eeze already.

This reverts commit 9d429a7c1ff059e2e4da961af73a6aecec3b5b98.

8 years agoelput: Use Eeze function to get the udev to create context with
Chris Michael [Thu, 2 Jun 2016 14:24:42 +0000 (10:24 -0400)]
elput: Use Eeze function to get the udev to create context with

As we already link to Eeze and use it throughout this code, there is
no point in adding an extra dependency on libudev itself when we can
just use Eeze functions to get what we need. This is a better fix for
T3712

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agobuild: use internal dependency for eina and ecore for generic players
Stefan Schmidt [Thu, 2 Jun 2016 13:32:53 +0000 (15:32 +0200)]
build: use internal dependency for eina and ecore for generic players

On a system without efl installed these two packages would not be found as.
Need to be internal now that we merged them inside efl.

8 years agoelementary: add missing dependency on libwayland-client in elm_cnp
Stefan Schmidt [Thu, 2 Jun 2016 10:02:01 +0000 (12:02 +0200)]
elementary: add missing dependency on libwayland-client in elm_cnp

lib/elementary/.libs/lib_elementary_libelementary_la-elm_cnp.o: In function `wl_data_offer_accept':
/usr/include/wayland-client-protocol.h:893: undefined reference to `wl_proxy_marshal'
/usr/include/wayland-client-protocol.h:893: undefined reference to `wl_proxy_marshal'
collect2: error: ld returned 1 exit status

Based on a patch by aerodynamik. Thanks!

Fixes T3398

8 years agoelput: add missing dependency on libudev
Stefan Schmidt [Thu, 2 Jun 2016 09:29:21 +0000 (11:29 +0200)]
elput: add missing dependency on libudev

Elput is using udev directly so we need to amke sure we link against it.

lib/elput/.libs/lib_elput_libelput_la-elput_input.o: In function `_elput_input_init_thread':
/<<PKGBUILDDIR>>/src/lib/elput/elput_input.c:317: undefined reference to `udev_new'
/<<PKGBUILDDIR>>/src/lib/elput/elput_input.c:326: undefined reference to `udev_unref'

Patch by aerodynamik. Thanks!

Fixes T3712

8 years agoevas generic svg loader - dotn continue if rsvg handle is null
Carsten Haitzler (Rasterman) [Thu, 2 Jun 2016 13:31:53 +0000 (22:31 +0900)]
evas generic svg loader - dotn continue if rsvg handle is null

should avoid complaints of null rsvg handles

8 years agoefl - build again after adding generic players
Carsten Haitzler (Rasterman) [Thu, 2 Jun 2016 13:29:54 +0000 (22:29 +0900)]
efl - build again after adding generic players

8 years agoeolian: utilize the new void_ptr builtin across eo files
Daniel Kolesa [Thu, 2 Jun 2016 11:54:59 +0000 (12:54 +0100)]
eolian: utilize the new void_ptr builtin across eo files

This lets me narrow down the remaining cases of pointers across the EFL.
The void pointers will later need to be reevaluated on per-case basis and
replaced appropriately where possible/feasible.

8 years agoedje_cc: improve code readability when parsing external params
Jee-Yong Um [Thu, 2 Jun 2016 11:55:10 +0000 (20:55 +0900)]
edje_cc: improve code readability when parsing external params

Reviewers: Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Subscribers: cedric, jpeg

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

8 years agoMerge evas generic loaders and emotion generic players
Tom Hacohen [Thu, 2 Jun 2016 10:36:13 +0000 (11:36 +0100)]
Merge evas generic loaders and emotion generic players

We decided to merge these into the efl. They are now part of the repo
and build as port of the normal makefiles. History is fully retained.

8 years agoemotion: remove legacy files from emotion_generic_players.
Cedric BAIL [Thu, 2 Jun 2016 00:00:18 +0000 (17:00 -0700)]
emotion: remove legacy files from emotion_generic_players.

8 years agoevas: remove legacy file from evas_generic_loaders.
Cedric BAIL [Wed, 1 Jun 2016 23:59:45 +0000 (16:59 -0700)]
evas: remove legacy file from evas_generic_loaders.

8 years agoevas: integrate evas generic loaders into our single tree build system.
Cedric BAIL [Wed, 1 Jun 2016 23:59:02 +0000 (16:59 -0700)]
evas: integrate evas generic loaders into our single tree build system.

8 years agoemotion: integrate generic legacy vlc support in the build system.
Cedric BAIL [Wed, 1 Jun 2016 18:32:15 +0000 (11:32 -0700)]
emotion: integrate generic legacy vlc support in the build system.

8 years agoMerge in emotion generic players.
Tom Hacohen [Tue, 24 May 2016 08:11:24 +0000 (09:11 +0100)]
Merge in emotion generic players.

This commit only merges the repository in (including history) but
doesn't actually build anything. This is the first steps towards the
merge.

8 years agoMerge in evas generic loaders.
Tom Hacohen [Tue, 24 May 2016 08:10:22 +0000 (09:10 +0100)]
Merge in evas generic loaders.

This commit only merges the repository in (including history) but
doesn't actually build anything. This is the first steps towards the
merge.

8 years agoEvas: Rename Evas.Rectangle as Efl.Canvas.Rectangle
Jean-Philippe Andre [Thu, 2 Jun 2016 09:55:51 +0000 (18:55 +0900)]
Evas: Rename Evas.Rectangle as Efl.Canvas.Rectangle

8 years agoelm fileselector - make ok/cancel in selector configurable per os
Carsten Haitzler (Rasterman) [Thu, 2 Jun 2016 09:37:06 +0000 (18:37 +0900)]
elm fileselector - make ok/cancel in selector configurable per os

so the theme build can order ok/cancel based on preference for an os,
so make configure have an option for this and build the theme
specifically based on that option. enable the option if you want mac
style cancel, ok or default ok, cancel as is common elsewhere.

  --enable-cancel-ok

is the option

@feature

8 years agoelm_win: remove elm_win_layer_set and inlined image get
Ji-Youn Park [Thu, 2 Jun 2016 09:07:07 +0000 (17:37 +0830)]
elm_win: remove elm_win_layer_set and inlined image get

elm_win_layer_set is not supported int wayland.
inlined image get api should alternative method to help app save, get pixel for TODO

8 years agoelm_win: remove illume command send from eo
Ji-Youn Park [Thu, 2 Jun 2016 08:40:41 +0000 (17:10 +0830)]
elm_win: remove illume command send from eo

1. remain elm_win_type_set
2. remain elm_win_alpha_set
3. remain elm_win_available_profile_set/get
app usually set availble profile into window, and app fw or other lib can read it.
so I remain get/set api both.
4. remove elm_win_profile_set/get from eo
5. remove illume feture in eo and move it to legacy

8 years agoEfl.Gfx.Size.Hint: add Efl.Gfx.Size.Hint skeletton
Ji-Youn Park [Thu, 2 Jun 2016 08:18:17 +0000 (16:48 +0830)]
Efl.Gfx.Size.Hint: add Efl.Gfx.Size.Hint skeletton

create Efl.Gfx.Size.Hint skeletton and change elm_win eo.
remove size_step and size_base API from elm_win
and inherit from Efl.Gfx.Size.hint

8 years agoecore_evas: Fix mouse in/out events
Jean-Philippe Andre [Thu, 2 Jun 2016 04:28:40 +0000 (13:28 +0900)]
ecore_evas: Fix mouse in/out events

Apparently I broke some inputs in E (efm) like mouse wheel.
Somehow the list of objects where the pointer is in was NULL.
This was because the mouse_in/out events were not matched to
the proper window ID.

Fixes T3760

8 years agoecore_evas: Fix mouse inputs
Jean-Philippe Andre [Thu, 2 Jun 2016 01:58:06 +0000 (10:58 +0900)]
ecore_evas: Fix mouse inputs

Yup, I broke everything again. This time, mouse move inputs
would not move the cursor, since I was bypassing the regular
_ecore_evas_mouse_xxx callbacks.

Fixes T3766

8 years agoEvas: Simplify eo event mechanism
Jean-Philippe Andre [Wed, 1 Jun 2016 11:40:18 +0000 (20:40 +0900)]
Evas: Simplify eo event mechanism

So, I was stupid. I was relying on legacy callbacks to
trigger eo events, which means that only when a legacy
callback was registered would my new eo events be triggered.

Instead, I can pass the eo event desc & info whenever
calling evas_object_event_callback_call().

8 years agoEvas: Send Efl_Event_Key data to evas objects
Jean-Philippe Andre [Wed, 1 Jun 2016 06:32:35 +0000 (15:32 +0900)]
Evas: Send Efl_Event_Key data to evas objects

8 years agoEvas: Send key events through eo callbacks
Jean-Philippe Andre [Wed, 1 Jun 2016 06:22:07 +0000 (15:22 +0900)]
Evas: Send key events through eo callbacks

8 years agoEvas: Add storage class for Key events
Jean-Philippe Andre [Tue, 31 May 2016 11:08:22 +0000 (20:08 +0900)]
Evas: Add storage class for Key events

This is for key up/down events' info.

8 years agoeina: fix compilation on OpenBSD/Windows of eina_btlog
Jean Guyomarc'h [Wed, 1 Jun 2016 22:09:27 +0000 (00:09 +0200)]
eina: fix compilation on OpenBSD/Windows of eina_btlog

We only care whether the process terminated successfully or not.
Non-zero values will be anything but a success, so we don't even care
about the exit code of the program.

This should fix compiling on OpenBSD (where WEXITSTATUS needed
to be defined by including a system header) as well on Windows.

Fixes T3733

8 years agoelementary: fix runtime warning about missing fixed part
Jean Guyomarc'h [Wed, 1 Jun 2016 20:46:31 +0000 (22:46 +0200)]
elementary: fix runtime warning about missing fixed part

8 years agoecore_cocoa: fix bad copy/paste in documentation
Jean Guyomarc'h [Wed, 1 Jun 2016 20:45:35 +0000 (22:45 +0200)]
ecore_cocoa: fix bad copy/paste in documentation

Thanks to Stefan Schmidt.

8 years agoSwitch to eo_del() where it should be a del and not an unref
Tom Hacohen [Wed, 1 Jun 2016 18:21:08 +0000 (19:21 +0100)]
Switch to eo_del() where it should be a del and not an unref

This code was written when eo_del() was removed and eo_unref() was the
recommended practice. Since we added eo_del() back we now need to adjust
this new code accordingly.

8 years agoedje_cc: fix SIGNAL_EMIT action inheritance error
Jee-Yong Um [Tue, 31 May 2016 23:46:36 +0000 (16:46 -0700)]
edje_cc: fix SIGNAL_EMIT action inheritance error

Summary:
When edje group inherits edje program whose action type is SIGNAL_EMIT
with target, unnecessary parse error occurs.

Reviewers: raster, cedric

Reviewed By: cedric

Subscribers: jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelm_win: force wl cursor set on every mouse-in
Mike Blumenkrantz [Wed, 1 Jun 2016 17:10:26 +0000 (13:10 -0400)]
elm_win: force wl cursor set on every mouse-in

handle the case where the mouse-in is not over a resize edge more effectively

@fix

8 years agobuild: fix distcheck by removing files manually
Stefan Schmidt [Wed, 1 Jun 2016 15:11:09 +0000 (17:11 +0200)]
build: fix distcheck by removing files manually

These files are not getting cleaned up as they are not integrated into the rest
of our build system. These are the extra makefiles to build build only eina, eo,
etc.

The trick with -C clean does not work here for me and this is the only way I
found to get a distcheck going through. Which is kinda important given we want to
do the first alpha tarballs for 1.18 next Monday.

8 years agobuild: keep our CLEANFILES tidy to avoid argument list too long during clean
Stefan Schmidt [Wed, 1 Jun 2016 13:17:33 +0000 (15:17 +0200)]
build: keep our CLEANFILES tidy to avoid argument list too long during clean

This is a new incarnation of 0a03e633500466b86cca3b7a5f088735afd7cb56. Our list
has grown to big again as people insist of adding the generated eolian files to
DISTCLEAN while BUILT_SOURCES will get removed durign the clean anyway.

Adding this file list twice will just make the argument list for rm to long to
work.

8 years agoecore loop args - go back to eo_del not eo_unref.
Carsten Haitzler (Rasterman) [Wed, 1 Jun 2016 13:11:02 +0000 (22:11 +0900)]
ecore loop args - go back to eo_del not eo_unref.

8 years agoRevert "Eo: Remove eo_del() and make eo_unref() the replacement."
Tom Hacohen [Wed, 1 Jun 2016 12:14:30 +0000 (13:14 +0100)]
Revert "Eo: Remove eo_del() and make eo_unref() the replacement."

This reverts commit 546ff7bbba788ec834c5608361c0834853f2d5d7.

It seems that eo_del() is useful and removing it was creating bugs.
The issue is that the way we defined parents in eo, both the parent and
the programmer share a reference to the object. When we eo_unref() that
reference as the programmer, eo has no way to know it's this specific
reference we are freeing, and not a general one, so in some
circumstances, for example:
eo_ref(child);
eo_unref(child); // trying to delete here
eo_unref(container); // container is deleted here
eo_unref(child); // child already has 0 refs before this point.

We would have an issue with references and objects being freed too soon
and in general, issue with the references.

Having eo_del() solves that, because this one explicitly unparents if
there is a parent, meaning the reference ownership is explicitly taken
by the programmer.

eo_del() is essentially a convenience function around "check if has
parent, and if so unparent, otherwise, unref". Which should be used when
you want to delete an object although it has a parent, and is equivalent
to eo_unref() when it doesn't have one.

8 years agoelm_win: move shaped & title property from eo to legacy
Ji-Youn Park [Wed, 1 Jun 2016 12:25:47 +0000 (20:55 +0830)]
elm_win: move shaped & title property from eo to legacy

1. remain borderless property.
2. shaped property was removed because wayland not support this.
3. remain noblank property.
4. remain role, name properties.
5. remove title property because it can be supported using name property

8 years agoelm_win: add enum for elm_win_modal set and elm_win_urgent set
Ji-Youn Park [Wed, 1 Jun 2016 11:47:30 +0000 (20:17 +0830)]
elm_win: add enum for elm_win_modal set and elm_win_urgent set

1. remain iconified, maximized, fullscreen property
2. remain sticky property
3. change return value type of modal from bool to enum for the future.
4. merge urgent_set and demand_attention
5. remain activate method

8 years agoelm_win: remove elm_win_icon_name from eo.
Ji-Youn Park [Wed, 1 Jun 2016 09:31:00 +0000 (18:01 +0830)]
elm_win: remove elm_win_icon_name from eo.

1. remain focus_highlight_style,focus_highlight_enabled,
focus_highlight_animated,prop_focus_skip,focus. because each window need to set the focus
feature.
2. autohide, autodel is remained for convenient.
3. icon_name will be removed. elm_win_icon_object_get can used instaed of icon_name.

8 years agoevas : evas_object_key_grab exclusive option logic is changed.
JEONGHYUN YUN [Wed, 1 Jun 2016 08:44:12 +0000 (17:14 +0830)]
evas : evas_object_key_grab exclusive option logic is changed.

Summary:
 - added is_active property in Evas_Key_Grab.
 - Evas key down and key up events transferred to active grabs only.
 - If evas grabs has a exclusive grab, other grabs will be deactivated.
 - If a exclusive grab is ungrabbed, remained grabs will be activated.

Reviewers: jypark

Reviewed By: jypark

Subscribers: cedric, jpeg

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

8 years agoefl_screen: create efl_screen interface
Ji-Youn Park [Wed, 1 Jun 2016 06:47:31 +0000 (15:17 +0830)]
efl_screen: create efl_screen interface

elm_win have three feature releated with screen.
1. screen_rotation_get
2. scrren_size_get
3. screen_dpi_get
so create efl_screen interface, and elm_win implement that interface

8 years agoelm_win: move elm_win_screen_size/position get api to legacy
Ji-Youn Park [Wed, 1 Jun 2016 04:28:01 +0000 (12:58 +0830)]
elm_win: move elm_win_screen_size/position get api to legacy

these kind of api are not supported in wayland.

8 years agoevas: updated evas_vg_sample with the appen_arc() api as well as _shape_dup() api...
Subhransu Mohanty [Tue, 31 May 2016 21:42:37 +0000 (14:42 -0700)]
evas: updated evas_vg_sample with the appen_arc() api as well as _shape_dup() api test.

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas: fix recalculation coordinates for pick object from scene in Evas.Canvas3d
Oleksandr Shcherbina [Tue, 31 May 2016 21:42:11 +0000 (14:42 -0700)]
evas: fix recalculation coordinates for pick object from scene in Evas.Canvas3d

Summary:
We did the same for evas_canvas3d_scene_pick(see c850cc0d80b754be851576083eba27a72b58b9f2),
but forget for evas_canvas3d_scene_exist.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas: avoid useless manipulation during pick object from scene in Evas.Canvas3d
Oleksandr Shcherbina [Tue, 31 May 2016 21:40:04 +0000 (14:40 -0700)]
evas: avoid useless manipulation during pick object from scene in Evas.Canvas3d

Summary:
It is logically break cycle in case object is found. In case need pick all objects
that lay in screen ray, we should use evas_canvas3d_scene_pick_member_list_get
function.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary: initialize single_direction as none for elm_map.
Sungtaek Hong [Tue, 31 May 2016 21:38:45 +0000 (14:38 -0700)]
elementary: initialize single_direction as none for elm_map.

Summary:
 - elm_map has a scrollbale interface and it is set
   as ELM_SCROLLER_SINGLE_DIRECTION_SOFT by default.
 - elm_map can be rotated by gesture or by an API
   elm_map_rotate_set, so this single direction
   makes scroll unnatural.

Reviewers: Hermet, cedric

Subscribers: conr2d, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoemile: fix build warning of Emile_Image.
JunsuChoi [Tue, 31 May 2016 21:37:53 +0000 (14:37 -0700)]
emile: fix build warning of Emile_Image.

Summary: initialized structure 'opts_region' for uninitialized build warning

Test Plan: N/A

Reviewers: raster, woohyun, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore: if you don't use the value, then don't set it.
Cedric BAIL [Tue, 31 May 2016 21:19:58 +0000 (14:19 -0700)]
ecore: if you don't use the value, then don't set it.

8 years agoeina: don't access dead promise.
Cedric BAIL [Tue, 31 May 2016 21:18:48 +0000 (14:18 -0700)]
eina: don't access dead promise.

We do properly unref promise while calling all the then callback. There
is no need to check it a second time (which actually lead to a 100%
bad access).

T3759

8 years agoecore: remove unwanted debug messages
Jean Guyomarc'h [Tue, 31 May 2016 19:47:48 +0000 (21:47 +0200)]
ecore: remove unwanted debug messages

Da is making my console output ugly.

8 years agoecore-con: print win32 svr->path on pipe creation failure
Mike Blumenkrantz [Tue, 31 May 2016 18:03:48 +0000 (14:03 -0400)]
ecore-con: print win32 svr->path on pipe creation failure

ref T3758

8 years agoRemove legacy elementary directory
Tom Hacohen [Tue, 31 May 2016 17:28:22 +0000 (18:28 +0100)]
Remove legacy elementary directory

The merge is already done and everything works as expected. There is no
need to keep this one.

8 years agoeolian: utilize the new builtin string type across eo files
Daniel Kolesa [Tue, 31 May 2016 15:02:26 +0000 (16:02 +0100)]
eolian: utilize the new builtin string type across eo files

8 years agoecore-drm: Deprecate Ecore_Drm library
Chris Michael [Tue, 31 May 2016 14:04:17 +0000 (10:04 -0400)]
ecore-drm: Deprecate Ecore_Drm library

Small patch to deprecate Ecore_Drm. This patch also adds a configure
option to enable ecore_drm for older code. This option is disabled by
default, so must be explicitly specified during build.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-evas-drm: Disable direct input callback
Chris Michael [Tue, 31 May 2016 13:49:43 +0000 (09:49 -0400)]
ecore-evas-drm: Disable direct input callback

For ecore_evas drm engine(s), disable setting of
ecore_event_window_direct_callback as this Completely Breaks all input
when running Enlightenment Wayland.

NB: This can likely be re-enabled at some point, when the jpeg
breakage is over ;)

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-evas-drm: Register direct input callback for gl_drm also
Chris Michael [Tue, 31 May 2016 13:23:20 +0000 (09:23 -0400)]
ecore-evas-drm: Register direct input callback for gl_drm also

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agopo: update POTFILE.in after file rename of elm_image.c
Stefan Schmidt [Tue, 31 May 2016 12:11:27 +0000 (14:11 +0200)]
po: update POTFILE.in after file rename of elm_image.c

Follwoing a0ec05cd8f9307d0a28f6902680f579b96812f71 we also rename the file
here to fix the po file generation.

8 years agoelm: Fix build (use efl_ui_image.eo)
Jean-Philippe Andre [Tue, 31 May 2016 11:44:41 +0000 (20:44 +0900)]
elm: Fix build (use efl_ui_image.eo)

8 years agoelm_image: rename the elm_image into efl_ui_image.
Ji-Youn Park [Tue, 31 May 2016 10:38:21 +0000 (19:08 +0830)]
elm_image: rename the elm_image into efl_ui_image.

8 years agoEvas: Add proper EO events with info for mouse inputs
Jean-Philippe Andre [Tue, 31 May 2016 10:08:37 +0000 (19:08 +0900)]
Evas: Add proper EO events with info for mouse inputs

This adds a few classes, in particular Efl.Event and Efl.Event.Point
which are used as the event info for all pointer (mouse, multi) call

Using an eo object as event info will allow for future extensions
really easily. We don't need to expose any of the internals, also
a single type can be used for all pointer events.

Still TODO:
 - Keyboard events (urgent)
 - Axis / Joystick events (needs porting from Tizen)
 - Gestures support (probably later)
 - Event feeding from app side (manual feed)

Not going to be ported to EO:
 - Hold API and hold event. Seems barely used.

The new APIs are not very much tested at this point, and rely on the
old legacy event system. The most important thing right now is to
ensure that nothing was broken so far. Unfortunately I can only do
this much testing myself...

Merge branch 'devs/jpeg/work'

8 years agoEfl: Rename Efl.Pointer.Event into Efl.Event.Pointer
Jean-Philippe Andre [Tue, 31 May 2016 07:44:26 +0000 (16:44 +0900)]
Efl: Rename Efl.Pointer.Event into Efl.Event.Pointer

Also renames two types: Efl.Pointer.Flags and Efl.Event.Flags

8 years agoEvas events: Fix a crash
Jean-Philippe Andre [Tue, 31 May 2016 05:58:23 +0000 (14:58 +0900)]
Evas events: Fix a crash

There was an invalid reference used because we changed
legacy event type without resetting eo event info.
Scenario: scroll + click

8 years agoEvas events: Propagate event flags between eo and legacy
Jean-Philippe Andre [Tue, 31 May 2016 05:39:10 +0000 (14:39 +0900)]
Evas events: Propagate event flags between eo and legacy

If on_hold or on_scroll is set in an eo callback, the subsequent
calls to the legacy callbacks will also have this flag set.
Inversely the legacy callbacks should affect all subsequent eo
callbacks.

Note: those are just indicative flags.