platform/upstream/efl.git
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.

8 years agoEvas events: Add helper functions to read event info
Jean-Philippe Andre [Tue, 31 May 2016 04:40:14 +0000 (13:40 +0900)]
Evas events: Add helper functions to read event info

This adds simple helpers for double/triple click
and on_hold/on_scroll flags.

8 years agoEvas events: Store position as double only
Jean-Philippe Andre [Tue, 31 May 2016 03:15:25 +0000 (12:15 +0900)]
Evas events: Store position as double only

This splits pixel and subpixel precision by using
different methods rather than two different storage values.

8 years agoEfl event: Remove useless method declaration
Jean-Philippe Andre [Tue, 31 May 2016 02:17:08 +0000 (11:17 +0900)]
Efl event: Remove useless method declaration

8 years agoEvas events: Split pointer events
Jean-Philippe Andre [Mon, 30 May 2016 11:53:07 +0000 (20:53 +0900)]
Evas events: Split pointer events

This is going back to the same idea as legacy. We will have
events such as:
- move
- down
- up
- in
- out
- wheel
- cancel ("new" - very rare)

Now the question is whether/how we should divide "multi" events
which start from the 2nd finger from standard mouse events. The first
multitouch finger should by default look like a mouse event.

8 years agoElm win: Forward pointer events from evas to window
Jean-Philippe Andre [Mon, 30 May 2016 10:51:31 +0000 (19:51 +0900)]
Elm win: Forward pointer events from evas to window

This will allow applications to listen to those events
on the whole window. Necessary since they won't have access
to Evas with EO APIs.

8 years agoEvas events: Add EO APIs for lock & modifiers
Jean-Philippe Andre [Mon, 30 May 2016 06:34:31 +0000 (15:34 +0900)]
Evas events: Add EO APIs for lock & modifiers

This moves Efl.Pointer.Event back to Evas. Originally I wanted
to share this class with Ecore but eventually I didn't need to
do so, since only ecore_evas (which depends on evas) really needs
access to these.

The internal data struct is not moved out of efl (yet?)

8 years agoEvas events: Replace calls to event feed with internal func
Jean-Philippe Andre [Mon, 30 May 2016 05:26:48 +0000 (14:26 +0900)]
Evas events: Replace calls to event feed with internal func

8 years agoEvas events: Pass Efl_Pointer_Event for proxy source events
Jean-Philippe Andre [Fri, 27 May 2016 11:06:06 +0000 (20:06 +0900)]
Evas events: Pass Efl_Pointer_Event for proxy source events

8 years agoEvas events: Forward more pointer events
Jean-Philippe Andre [Fri, 27 May 2016 07:21:13 +0000 (16:21 +0900)]
Evas events: Forward more pointer events

This continues the work started in the previous commit:
forward full event info (Efl_Pointer_Event) from evas to
the upper layers.

This also includes more support for IN and OUT.

8 years agoevas: send eo pointer events on mouse move
Jean-Philippe Andre [Thu, 12 May 2016 07:48:54 +0000 (16:48 +0900)]
evas: send eo pointer events on mouse move

This is still VERY experimental and not fully done yet.
All other pointer events need to be sent as well.

The legacy event system is used as a transportation mechanism,
as it is too hard to change the logic. This only adds an extra
eo event in case of move. Obviously for performance we might
want to listen to callback_add,del but that's an optimization
for later.

The whole point of sending those pointer events is to carry more
information than can be sent over legacy evas events, and unify
the events in a common format.

8 years agoEfl.Pointer.Event: Add dup() method to copy an event
Jean-Philippe Andre [Thu, 12 May 2016 06:07:49 +0000 (15:07 +0900)]
Efl.Pointer.Event: Add dup() method to copy an event

8 years agoecore_x: Pass in/out through ecore_input_evas
Jean-Philippe Andre [Wed, 11 May 2016 12:43:57 +0000 (21:43 +0900)]
ecore_x: Pass in/out through ecore_input_evas

This whole input system is a massive mess. It looks like spaghetti.
Long live the giant flying monster.

This commit changes how some events are propagated in X.

Before:
 ecore_x -> evas_event -> evas

After:
 ecore_x -> ecore_input_evas -> ecore_evas -> evas_event -> evas

There are still inconsistencies between events and between X and WL,
but ecore_evas should be used for all events since it rotates the
inputs.

8 years agoevas_events: Propagate more eo pointer events
Jean-Philippe Andre [Wed, 11 May 2016 11:26:07 +0000 (20:26 +0900)]
evas_events: Propagate more eo pointer events

This covers mouse in,out,cancel. Axis (joystick) is still
todo.

8 years agoefl: Simplify pointer event names + add missing
Jean-Philippe Andre [Wed, 11 May 2016 11:13:19 +0000 (20:13 +0900)]
efl: Simplify pointer event names + add missing

No more difference between touch & mouse.
Add axis, cancel, in and out.

8 years agoecore_evas: Pass mouse down,up,move with eo
Jean-Philippe Andre [Wed, 11 May 2016 08:28:26 +0000 (17:28 +0900)]
ecore_evas: Pass mouse down,up,move with eo

This way, ecore sends eo events to evas, which can then
be listened to by other clients (FIXME: the events will
need to be propagated from evas to the elm window).

Current support:
- mouse/multi down
- mouse/multi up
- mouse/multi move
- mouse wheel

8 years agoevas: Move event feed and input to legacy
Jean-Philippe Andre [Wed, 11 May 2016 07:21:49 +0000 (16:21 +0900)]
evas: Move event feed and input to legacy

8 years agoecore_evas: Feed evas events with eo (down, up)
Jean-Philippe Andre [Wed, 11 May 2016 05:54:11 +0000 (14:54 +0900)]
ecore_evas: Feed evas events with eo (down, up)

8 years agoecore_input: Pass all events through direct cb first
Jean-Philippe Andre [Wed, 11 May 2016 04:55:54 +0000 (13:55 +0900)]
ecore_input: Pass all events through direct cb first

Since the direct input event callback returns true if the
event has been processed, we can easily support legacy and
progressively implement full support for eo input events.

8 years agoecore_evas: Register direct input cb from modules
Jean-Philippe Andre [Wed, 11 May 2016 04:29:23 +0000 (13:29 +0900)]
ecore_evas: Register direct input cb from modules

If the ecore_evas modules were using
ecore_event_window_register() then they can also redirect
everything though the direct callback instead.

8 years agoecore_evas: Add private direct callback for ecore
Jean-Philippe Andre [Wed, 11 May 2016 04:01:54 +0000 (13:01 +0900)]
ecore_evas: Add private direct callback for ecore

All ecore_input_evas events should be passed through ecore_evas
in order to avoid any information loss between ecore and evas.

This is a private API.

8 years agoEvas: Extend pointer events and add legacy conversion routines
Jean-Philippe Andre [Tue, 10 May 2016 12:26:07 +0000 (21:26 +0900)]
Evas: Extend pointer events and add legacy conversion routines

To be honest, this commit is a bit of a mess since it's a
rebased version of some temporary work patches.

8 years agoEvas: Fix compilation warnings (enum implicit cast)
Jean-Philippe Andre [Fri, 29 Apr 2016 05:24:14 +0000 (14:24 +0900)]
Evas: Fix compilation warnings (enum implicit cast)

Moving enums to Efl renames them but keeps the value the same.

8 years agoEvas.Canvas: Move some event_feed to legacy
Jean-Philippe Andre [Thu, 28 Apr 2016 09:43:18 +0000 (18:43 +0900)]
Evas.Canvas: Move some event_feed to legacy

Paving the way to Efl.Pointer.Event...

8 years agoEfl: Add storage class Efl.Pointer.Event
Jean-Philippe Andre [Thu, 28 Apr 2016 08:31:46 +0000 (17:31 +0900)]
Efl: Add storage class Efl.Pointer.Event

This object is the data carried over in an event data pointer.

The private data should be accessible by Ecore and Evas, but
not externally. This means we should be able to easily extend
the feature set, adding more and more information, without
breaking API / ABI.

Also, this should allow applications to create fake input
events easily without exposing our internal structures, or
functions with more and more parameters (such as feed multi).

This is only a storage class, shouldn't contain any logic.
In the future, some logic may be added for gestures support
for instance, or input smoothing / resampling (eg. if input
frequency is 90Hz and screen refresh rate is 60Hz).

The aim is to replace:
- Evas_Event_Mouse_Xxx
- Evas_Event_Multi_Xxx
- Ecore_Event_Mouse_Xxx

We might want to also support Axis, Gestures, etc... with the
same model or even same storage class.

8 years agoEvas: EO-ify Evas_Device and partly move to Efl
Jean-Philippe Andre [Thu, 28 Apr 2016 08:08:14 +0000 (17:08 +0900)]
Evas: EO-ify Evas_Device and partly move to Efl

So, this is not a very clean solution, but this mostly
makes Evas_Device an Eo object of class Efl.Input.Device.
Since evas_device relies on some Evas knowledge (evas
callbacks, canvas private data), it can't be fully moved
to lib/efl/.

Making the input device an interface rather than a class
was also not a great solution, as the goal is to share
the data structure around EFL internals (Ecore and Evas).

8 years agoethumb - don't complain to stderr about things that are handled by api
Carsten Haitzler (Rasterman) [Tue, 31 May 2016 10:01:50 +0000 (19:01 +0900)]
ethumb - don't complain to stderr about things that are handled by api

things like load failures are up to api to deal with, not logs.

8 years agoefl test suite - test args event and args values
Carsten Haitzler (Rasterman) [Tue, 31 May 2016 08:16:14 +0000 (17:16 +0900)]
efl test suite - test args event and args values

8 years agoelementary: Add a preview for icon theme
Andy Williams [Mon, 30 May 2016 22:45:56 +0000 (23:45 +0100)]
elementary: Add a preview for icon theme

Not yet solved how to load an elm theme preview...

8 years agoeina: Add non-allocated version to benchmark
Felipe Magno de Almeida [Mon, 30 May 2016 20:01:40 +0000 (17:01 -0300)]
eina: Add non-allocated version to benchmark

8 years agoeina: Add mempool usage in benchmark
Felipe Magno de Almeida [Mon, 30 May 2016 19:22:27 +0000 (16:22 -0300)]
eina: Add mempool usage in benchmark

8 years agoeio: Fix eio_test_job_xattr test
Felipe Magno de Almeida [Mon, 30 May 2016 18:54:01 +0000 (15:54 -0300)]
eio: Fix eio_test_job_xattr test

Test wasn't enabled when modifications to function prototypes to
eio_job_file_xattr_list and eio_job_file_xattr properties were
made, so it got pushed inadvertidly without the necessary
changes to user code.

8 years agoelm_image: add a new eo property 'align' and implement related functions
Jaeun Choi [Fri, 27 May 2016 11:58:25 +0000 (20:58 +0900)]
elm_image: add a new eo property 'align' and implement related functions

previously, elm_image refered to align values
set by evas_object_size_hint_align_set function
to position the internal image inside an image object.
size hint value is for positioning the image object inside its container object,
so the previous code is inappropriate.
this commit adds 'align' property for positioning the internal image.

8 years agoelm init - add args event with ne efl loop args
Carsten Haitzler (Rasterman) [Mon, 30 May 2016 10:55:43 +0000 (19:55 +0900)]
elm init - add args event with ne efl loop args

8 years agoefl loop - add an args event and ability to produce it
Carsten Haitzler (Rasterman) [Mon, 30 May 2016 10:47:21 +0000 (19:47 +0900)]
efl loop - add an args event and ability to produce it

this is an args event. right now we don't use it, but this should be
done by some of the setup/init of an app and then produce an args
event. the idea would be that this can be used by single-instance apps
like web browsers, terminology to treat launch as an event.

8 years agoAdded feature to bring focused item to viewport on click
godly.talias [Mon, 30 May 2016 05:39:36 +0000 (14:39 +0900)]
Added feature to bring focused item to viewport on click

Summary:
Currently when an item in gengrid is focused and if it is scrolled
off the viewport halfly and if it user clicks on it, it won't be
scrolled into viewport. Only non-focused items will be scrolled into
viewport when clicked.

Test Plan:
elementary_test -> Gengrid focus -> Click an item ->
           Scroll it little bit out of viewport -> Click again

Reviewers: prince.dubey, shilpasingh, cedric, raster, SanghyeonLee

Subscribers: seoz, rajeshps, govi, jpeg

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

8 years agoeet_image.c : Fix build warning
JunsuChoi [Mon, 30 May 2016 04:38:18 +0000 (13:38 +0900)]
eet_image.c : Fix build warning

Summary: initialized two variable for uninitialized build warning

Test Plan: N/A

Reviewers: woohyun, raster

Reviewed By: raster

Subscribers: cedric, jpeg

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

8 years agoelc_naviframe: Hide preserved content after its item is popped.
Jaehyun Cho [Mon, 30 May 2016 04:53:40 +0000 (13:53 +0900)]
elc_naviframe: Hide preserved content after its item is popped.

Previously, preserved content was shown unexpectedly after its naviframe
item was popped because the preserved content was not removed but was
unset from its naviframe item.

Since popped naviframe item becomes hidden on the screen, the preserved
content of the popped naviframe item should become hidden by default as
well.