platform/upstream/efl.git
7 years agoeio model: remove useless efreet_mime_type_get call
Vitor Sousa [Fri, 28 Oct 2016 23:19:37 +0000 (21:19 -0200)]
eio model: remove useless efreet_mime_type_get call

7 years agoelm_icon: avoid useless assignment
Jean Guyomarc'h [Fri, 28 Oct 2016 21:23:15 +0000 (23:23 +0200)]
elm_icon: avoid useless assignment

Assigning id->edje to EINA_TRUE in a code path triggered when id->edje
is EINA_FALSE instead of unconditionnaly setting it to EINA_TRUE avoids
to assign id->edje to itself.

7 years agoelm_icon: slightly clean-up code
Jean Guyomarc'h [Fri, 28 Oct 2016 21:20:14 +0000 (23:20 +0200)]
elm_icon: slightly clean-up code

It is unnecessary to use an initialized variable on the stack to hold a
new value and then immediately return it.

7 years agoLuncher: Improve indicator theme.
Stephen okra Houston [Fri, 28 Oct 2016 20:04:43 +0000 (15:04 -0500)]
Luncher: Improve indicator theme.

7 years agoelementary_theme: Add 'xterm' cursor into theme
Chris Michael [Fri, 28 Oct 2016 18:27:50 +0000 (14:27 -0400)]
elementary_theme: Add 'xterm' cursor into theme

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: Remove debug printing
Chris Michael [Fri, 28 Oct 2016 18:27:17 +0000 (14:27 -0400)]
elementary: Remove debug printing

NB: No functional changes, just removing left over prints

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoLuncher: Add the necessary theme files for Enlightenment's new launcher
Stephen okra Houston [Fri, 28 Oct 2016 18:20:41 +0000 (13:20 -0500)]
Luncher: Add the necessary theme files for Enlightenment's new launcher

7 years agoelementary: Make setting cursors for EFL Wayland client apps work
Chris Michael [Fri, 28 Oct 2016 18:01:47 +0000 (14:01 -0400)]
elementary: Make setting cursors for EFL Wayland client apps work

This patch changes els_cursor.c to work with the pointer object
created for EFL Wayland Application windows. This allows any EFL cursors
specified by an application to work in Wayland (ex: elm_test Cursor
tests)

NB: While the code is working, there will still be missing cursors due
to those not being included (yet) in the elm theme. Will continue to
add those as time goes.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary_theme: Standardize cursor hotspot swallow names
Chris Michael [Fri, 28 Oct 2016 18:00:55 +0000 (14:00 -0400)]
elementary_theme: Standardize cursor hotspot swallow names

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: Add internal function to set wayland cursor
Chris Michael [Fri, 28 Oct 2016 17:59:31 +0000 (13:59 -0400)]
elementary: Add internal function to set wayland cursor

Add an internal elm function we can call from withint els_cursor.c so
that we can set window cursor/pointer images based on what is supplied
by els_cursor.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore_evas: refactor VNC as an Eina Module.
Guilherme Iscaro [Fri, 28 Oct 2016 16:56:42 +0000 (09:56 -0700)]
ecore_evas: refactor VNC as an Eina Module.

Summary:
This change removes the necessity to link EFL against the libvncserver

Please ignore the first three commits, they're being reviewed here:

https://phab.enlightenment.org/D4323

Reviewers: bdilly, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
7 years agoelementary: Fix build break for non-wayland builds
Chris Michael [Fri, 28 Oct 2016 16:34:18 +0000 (12:34 -0400)]
elementary: Fix build break for non-wayland builds

This fixes an issue where build would be broken if not building with
Wayland support.

Fixes T4778

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Only call pointer_update_stop once
Chris Michael [Fri, 28 Oct 2016 15:27:59 +0000 (11:27 -0400)]
ecore-wl2: Only call pointer_update_stop once

As we already call _ecore_wl2_input_cursor_update_stop above, we
actually don't need to call it a second time.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoobj caching - add a reuse in key event objects too to nuke leaks
Carsten Haitzler (Rasterman) [Fri, 28 Oct 2016 13:57:25 +0000 (22:57 +0900)]
obj caching - add a reuse in key event objects too to nuke leaks

new leak since sink was added.

7 years agoimprove responsivness of timer sleeping threads for vsync with prctl
Carsten Haitzler (Rasterman) [Fri, 28 Oct 2016 05:50:05 +0000 (14:50 +0900)]
improve responsivness of timer sleeping threads for vsync with prctl

prctl allows us on some platforms to request a thread be woken up more
agressively e.g. due to a timeout bu setting timerslack. since we use
a dedicated thread just for vsync events, this is a very good idea to
ask the kernel to be as exact as possible for this thread as it only
wakes up once per frame (or should only) and accuracy is important. so
use this.

also improve prctl checks to be more explicit in configure.ac and use
these ifdefs in ecore exe too where prctl is used as well.

@feature

7 years agoelementary: Don't set "move" cursor on wayland client apps
Chris Michael [Fri, 28 Oct 2016 13:22:26 +0000 (09:22 -0400)]
elementary: Don't set "move" cursor on wayland client apps

As most (if not all) compositors will draw their own "move" cursor
when moving windows around, there's no real need to set this one
client side.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: Fix issue of extra pointer being displayed
Chris Michael [Fri, 28 Oct 2016 13:06:48 +0000 (09:06 -0400)]
elementary: Fix issue of extra pointer being displayed

As we only want to show our custom EFL cursors when the mouse is
actually inside the window, use the _elm_win_mouse_in/out functions to
control pointer visibility.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas-wayland-shm: Don't post updates to surface if no surface
Chris Michael [Fri, 28 Oct 2016 12:57:10 +0000 (08:57 -0400)]
evas-wayland-shm: Don't post updates to surface if no surface

In the event that an ecore_evas (using wayland_shm) gets hidden then
the corresponding wl_surface gets destroyed. If evas_norender is
called after that, the outbuf_redraws_clear function follows.
Outbuf_redraw_clear function ends up trying to post updates to the
wl_surface however if that wl_surface is gone, then we end up crashing.

This patch addresses that issue by checking for a valid wl_surface
inside the engine before trying to post updates to that wl_surface.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas-wayland-shm: Fix formatting
Chris Michael [Fri, 28 Oct 2016 12:53:17 +0000 (08:53 -0400)]
evas-wayland-shm: Fix formatting

NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Disable pointer frame callback if no cursor surface
Chris Michael [Thu, 27 Oct 2016 18:56:36 +0000 (14:56 -0400)]
ecore-wl2: Disable pointer frame callback if no cursor surface

If we have no cursor surface, then we don't need the pointer frame
callback anymore so call cursor_update_stop which will delete the
pointer frame callback

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Don't create cursor frame callback if there is no cursor
Chris Michael [Thu, 27 Oct 2016 17:48:56 +0000 (13:48 -0400)]
ecore-wl2: Don't create cursor frame callback if there is no cursor
surface

In the event that we have no cursor surface, then we should not be
creating a cursor frame callback.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: Don't create pointer canvas for inlined_image
Chris Michael [Thu, 27 Oct 2016 17:21:23 +0000 (13:21 -0400)]
elementary: Don't create pointer canvas for inlined_image

As we don't need a pointer or pointer canvas for
ELM_WIN_INLINED_IMAGE, add missing type check and skip creating
pointer canvas there.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: Use separate checks for pointer object vs pointer canvas
Chris Michael [Thu, 27 Oct 2016 17:13:32 +0000 (13:13 -0400)]
elementary: Use separate checks for pointer object vs pointer canvas

As under the drm engine a softcursor will be created, but not a
pointer canvas, we need to use separate if checks in certain places
like showing, hiding the mouse pointer/canvas.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: only update pointer frame if there is a pointer surface
Mike Blumenkrantz [Fri, 28 Oct 2016 13:53:29 +0000 (09:53 -0400)]
ecore-wl2: only update pointer frame if there is a pointer surface

fix T4777, T4776

7 years agoEdje_Edit: save files name instead of full path on sound add
Vitalii Vorobiov [Fri, 28 Oct 2016 12:56:28 +0000 (15:56 +0300)]
Edje_Edit: save files name instead of full path on sound add

Since file will be inside of edj file, there is no need in having full path to
the place from where it was imported

@fix

7 years agoInput events cache: use the new mechanism to reuse eo objects.
Tom Hacohen [Fri, 28 Oct 2016 12:20:56 +0000 (13:20 +0100)]
Input events cache: use the new mechanism to reuse eo objects.

7 years agoEo: Add a method to mark objects for reuse.
Tom Hacohen [Fri, 28 Oct 2016 12:19:10 +0000 (13:19 +0100)]
Eo: Add a method to mark objects for reuse.

This informas eo an object is going to get reused/cached, so eo can
reset the object appropriately.

@feature.

7 years agoecore-animator allow for animator to skip queued animator ticks
Carsten Haitzler (Rasterman) [Fri, 28 Oct 2016 04:58:56 +0000 (13:58 +0900)]
ecore-animator allow for animator to skip queued animator ticks

set ECORE_ANIMATOR_SKIP to skip queued animtor ticks if multiple are
in the pipeline. optional and not on by default. i would think its not
a good idea to skip these animator ticks and skipping/deferring is a
job higher up.

@feature

7 years agopo files - update comments
Carsten Haitzler (Rasterman) [Fri, 28 Oct 2016 01:56:02 +0000 (10:56 +0900)]
po files - update comments

7 years agoefl - fix build after bu5hman broke it with elm.h changes
Carsten Haitzler (Rasterman) [Fri, 28 Oct 2016 00:17:48 +0000 (09:17 +0900)]
efl - fix build after bu5hman broke it with elm.h changes

fixes break added by d896e3efc542c66a651c1ba0e84f3d692981b89c

dont forget distclean!

7 years agoevas - fix smart clipped if a move happens to recurse within itself
Carsten Haitzler (Rasterman) [Thu, 27 Oct 2016 23:17:11 +0000 (08:17 +0900)]
evas - fix smart clipped if a move happens to recurse within itself

so since this uses new pos - cur pos to move BY x pixels... there is
an issue that if the move of the obj ends up re-moving the current obj
TO the same pos. it moved BY the same delta again thus racing ahead.
not great. because x/y is not stored until the call stack returns to
after the smart move func and the pos set storce the new position in
the object struct. the easiest way atm until we have relative
positioning etc. is to store this in the smart obj and use the delta
at that time of the call then store it immediately so a recursion ends
up with a delta of 0 if its the same pos, so go back to where we were.

this fixes a nasty issue i spotted in fileselector that made filesel
icons race along when scrolling 2x as fast as everything else. oddly i
couldnt see this in any other widget that scrolled when i looked...
which is odd, but... either way a nasty issue... subtle... and now
fixed. never saw this before so this seems new.

7 years agoelm theme: Add volume control theme to "e/widgets/border/default/border"
Michaël Bouchaud (yoz) [Sat, 15 Oct 2016 12:02:17 +0000 (14:02 +0200)]
elm theme: Add volume control theme to "e/widgets/border/default/border"

7 years agoexamples: ecore: add ecore_evas_vnc example binary to .gitignore
Stefan Schmidt [Thu, 27 Oct 2016 14:53:17 +0000 (16:53 +0200)]
examples: ecore: add ecore_evas_vnc example binary to .gitignore

7 years agodocs: eo: document last missing structs
Stefan Schmidt [Thu, 27 Oct 2016 14:52:00 +0000 (16:52 +0200)]
docs: eo: document last missing structs

With this commits we reach 100% eo docs coverage for structs.

7 years agodocs: eio: document missing structs
Stefan Schmidt [Thu, 27 Oct 2016 14:51:42 +0000 (16:51 +0200)]
docs: eio: document missing structs

7 years agodocs: efl: document missing structs
Stefan Schmidt [Thu, 27 Oct 2016 14:49:05 +0000 (16:49 +0200)]
docs: efl: document missing structs

7 years agodocs: evas: document missing structs
Stefan Schmidt [Thu, 27 Oct 2016 14:48:36 +0000 (16:48 +0200)]
docs: evas: document missing structs

7 years agodocs: elm: document missing structs
Stefan Schmidt [Thu, 27 Oct 2016 14:45:19 +0000 (16:45 +0200)]
docs: elm: document missing structs

7 years agodocs: ecore_con: document missing structs
Stefan Schmidt [Thu, 27 Oct 2016 14:43:42 +0000 (16:43 +0200)]
docs: ecore_con: document missing structs

7 years agodocs: ecore: document missing structs
Stefan Schmidt [Thu, 27 Oct 2016 14:43:11 +0000 (16:43 +0200)]
docs: ecore: document missing structs

7 years agoeina: documment envvars at eina_init().
Gustavo Sverzut Barbieri [Thu, 27 Oct 2016 12:31:29 +0000 (10:31 -0200)]
eina: documment envvars at eina_init().

following my commit for ecore_init(), do that for eina_init() as well,
sometimes it's hard to find the vars and their meaning without looking
at the code.

7 years agoecore_init() use getenv(ECORE_NO_SYSTEM_MODULES) and disable those.
Gustavo Sverzut Barbieri [Thu, 27 Oct 2016 11:30:31 +0000 (09:30 -0200)]
ecore_init() use getenv(ECORE_NO_SYSTEM_MODULES) and disable those.

Sometimes during debug of efl_net we get some "extra" sockets from
DBus to talk to upower, localed, timedated... which are helpful in
real life, but pollutes debugging.

Since I don't want to contaminate examples with
ecore_app_no_system_modules(), which could lead users to naively copy
those and end without the system modules features, add an envvar that
I can define in my tests when I need them.

7 years agoelementary: split up the build options from the main header
Marcel Hollerbach [Thu, 27 Oct 2016 10:49:55 +0000 (12:49 +0200)]
elementary: split up the build options from the main header

This splits up the definitions from the buildtool into a seperated file
called Elementary_Options.h.
Reason for that is, that every single time when someone adds or changes
something in Elementary.h.in you need to rerun configure, to get the new
up to date Elementary.h file. With this commit you have a static none
generated Elementary.h file and the Elementary_Options.h file, which
will be regenerated when platform things are changing.

The version of elementary is now defined as the version of efl, since
they are always the same. So we dont need to generate a seperated
version field.

7 years agoelm_multibuttonentry: Apply focus UI feature for the item.
Woochan Lee [Thu, 27 Oct 2016 09:44:44 +0000 (11:44 +0200)]
elm_multibuttonentry: Apply focus UI feature for the item.

Summary:
It was not implemented.

Add focus_direct to give the internal box for focus UI feature.
- Item will be deleted when got a focus highlighted then user press delete button.
- Focus UI will not work if MBE shrunk.

@feature

Test Plan:
Run elementary_test.
multibuttonentry sample.

Reviewers: woohyun, Hermet, bu5hm4n

Subscribers: bu5hm4n, cedric, jpeg

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

7 years agoUNIX socket doesn't exist on Windows.
Gustavo Sverzut Barbieri [Thu, 27 Oct 2016 11:01:19 +0000 (09:01 -0200)]
UNIX socket doesn't exist on Windows.

thanks to vtorri & Kuri to spot that one.

7 years agoelm hoversel: restore focus to the button when hover end
WooHyun Jung [Thu, 27 Oct 2016 06:26:41 +0000 (15:26 +0900)]
elm hoversel: restore focus to the button when hover end

7 years agoefl_io_copier: work around efl_future weirdness.
Gustavo Sverzut Barbieri [Thu, 27 Oct 2016 01:17:10 +0000 (23:17 -0200)]
efl_io_copier: work around efl_future weirdness.

The pointer given to efl_future_use() should be NULL-ified before
calling my function, since that pointer has no meaning anymore.

The copier relied on pd->job being NULL to avoid useless rescheduling,
it was being reached with non-null, but that pointer is no longer
useful.

Moreover, I'm not sure if the second pointer, with the new future
won't be modified to NULL when the efl_future continues :-(

7 years agoefl_net_dialer_http: fix short downloads.
Gustavo Sverzut Barbieri [Thu, 27 Oct 2016 00:54:42 +0000 (22:54 -0200)]
efl_net_dialer_http: fix short downloads.

for short downloads the CURL handle will be done before the client had
time to read it, like done by efl_io_copier's job. We need to wait it
drain before we emit eos/closed.

7 years agoscroller: Adjust rare case when content fits but bars are visible
Jean-Philippe Andre [Wed, 26 Oct 2016 11:11:10 +0000 (20:11 +0900)]
scroller: Adjust rare case when content fits but bars are visible

This was simply annoying me. A scroller packed inside a box 150x150
should have enough space to hold an object of size 140x140. That's
a whole lot of 10 pixels margin!

This patch adds a special case code when the content "seems" to fit
inside the box but still one or both bars are visible. One problem
is that we can't know from the theme how much margin is used by a
scroller even when its bars are hidden. So we have to try to remove
them and then recalc to test.

This definitely adds quite a few more calculations if the state of
the scroll bars changes, but the result is way more pleasant :) This
should be limited to corner cases anyway (when the content size is
within 0 to ~20 pixels of the scroller size, depending on the theme
of course).

The test case is adjusted to show that same size content triggers
a show on the bars (because of theme margins). See CtxPopup test.

7 years agoelm: Fix elementary uninstalled eo headers
Jean-Philippe Andre [Wed, 26 Oct 2016 23:53:12 +0000 (08:53 +0900)]
elm: Fix elementary uninstalled eo headers

This fixes compilation for terminology for example.
Thanks to @Etrunko for the report.

Note: My builds originally worked fine because my installed
      include folder contained the old files :(

7 years agodocs: fix the last missing enum field docs all over the tree
Stefan Schmidt [Wed, 26 Oct 2016 22:26:16 +0000 (00:26 +0200)]
docs: fix the last missing enum field docs all over the tree

With this comit we reach 100% eo doc coverage for enum fields. Keep it like
this. :)

7 years agodocs: gen{list,grid}: add docs for field type enums
Stefan Schmidt [Wed, 26 Oct 2016 22:02:01 +0000 (00:02 +0200)]
docs: gen{list,grid}: add docs for field type enums

7 years agodocs: elm widget: start to document more items in the big elm widget eo file
Stefan Schmidt [Wed, 26 Oct 2016 21:51:04 +0000 (23:51 +0200)]
docs: elm widget: start to document more items in the big elm widget eo file

This can only be a start. Many more items need docs in here.

7 years agodocs: efl ui flip: document enums and events for ui flip
Stefan Schmidt [Wed, 26 Oct 2016 16:38:29 +0000 (18:38 +0200)]
docs: efl ui flip: document enums and events for ui flip

7 years agodocs: evas 3d: update and correct some docs for 3d object class
Stefan Schmidt [Wed, 26 Oct 2016 16:18:04 +0000 (18:18 +0200)]
docs: evas 3d: update and correct some docs for 3d object class

7 years agodocs: evas_types: finishing up documenting all enum types in evas_types
Stefan Schmidt [Wed, 26 Oct 2016 16:11:50 +0000 (18:11 +0200)]
docs: evas_types: finishing up documenting all enum types in evas_types

7 years agoefl_io_copier_example: add AF_UNIX support.
Gustavo Sverzut Barbieri [Wed, 26 Oct 2016 21:16:29 +0000 (19:16 -0200)]
efl_io_copier_example: add AF_UNIX support.

7 years agoaddded efl_net_{socket,dialer,server}_unix
Gustavo Sverzut Barbieri [Wed, 26 Oct 2016 20:57:37 +0000 (18:57 -0200)]
addded efl_net_{socket,dialer,server}_unix

This introduces AF_UNIX server and dialer, these are not available on
Windows as in that platform we'll create a custom class for native
'local' communication.

In the future we can add a wrapper class Efl.Net.Local that will use
the class for each platform, but won't expose its details.

For instance, if we ever expose 'credentials' (which I didn't because
they are not portable), then it doesn't make sense to try to match
that on Windows. The 'Efl.Net.Local' would just stick to the basics:
Reader, Writer and Closer APIs.

7 years agoefl_net_dialer_tcp: remove useless code.
Gustavo Sverzut Barbieri [Wed, 26 Oct 2016 20:19:59 +0000 (18:19 -0200)]
efl_net_dialer_tcp: remove useless code.

7 years agoefl_net_dialer_tcp: make code bit more robust.
Gustavo Sverzut Barbieri [Wed, 26 Oct 2016 19:51:58 +0000 (17:51 -0200)]
efl_net_dialer_tcp: make code bit more robust.

Also avoids the double-set of remote address, since socket.tcp will
alredy do that for us when we efl_loop_fd_set().

7 years agoMerge branch 'devs/devilhorns/wip'
Chris Michael [Wed, 26 Oct 2016 16:21:53 +0000 (12:21 -0400)]
Merge branch 'devs/devilhorns/wip'

This push merges some changes to the evas wayland shm engine. These
changes help to reduce dropped frames, fix max buffer age, provide
a better next buffer selection algorithm, and move buffer flipping out
of the render thread. In total, these provide better wayland_shm
engine performance. These patches are based on previous drm engine work
by Derek Foreman.

7 years agoevas-wayland-shm: Remove unused varible
Chris Michael [Wed, 26 Oct 2016 16:18:30 +0000 (12:18 -0400)]
evas-wayland-shm: Remove unused varible

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas-wayland-shm: Get page flips out of the render thread
Chris Michael [Wed, 26 Oct 2016 15:56:04 +0000 (11:56 -0400)]
evas-wayland-shm: Get page flips out of the render thread

Now that we have redraws_clear exposed through software generic, we can
use that to do the final buffer swap from the main thread instead of doing
it in outbuf_flush which runs from the render thread.

This becomes more important later when other call sites in the main thread
will perform buffer flips.

Based on 95a00b8e496839c4976259692fb7c308f7a850dc by Derek Foreman

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas-wayland-shm: Improve next buffer selection algorithm
Chris Michael [Wed, 26 Oct 2016 15:53:49 +0000 (11:53 -0400)]
evas-wayland-shm: Improve next buffer selection algorithm

When triple buffering it's possible that we'll only need two buffers at
a time for long durations.  When we finally call upon a third buffer it
hasn't been used recently enough to do a partial redraw.
By picking the oldest available buffer when multiple buffers are free we
can increase the likelihood of doing partial redraws.

Based on 79409757c6493738c21015708a1ba5178942ad94 by Derek Foreman.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas-wayland-shm: Default to triple buffering
Chris Michael [Wed, 26 Oct 2016 15:33:07 +0000 (11:33 -0400)]
evas-wayland-shm: Default to triple buffering

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas-wayland-shm: Fix max buffer age
Chris Michael [Wed, 26 Oct 2016 15:19:28 +0000 (11:19 -0400)]
evas-wayland-shm: Fix max buffer age

Highest possible buffer age should actually be 4, not the number of
available buffers.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas-wayland-shm: Fix formatting
Chris Michael [Wed, 26 Oct 2016 15:19:06 +0000 (11:19 -0400)]
evas-wayland-shm: Fix formatting

NB: No functional changes, just formatting

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Remove erroneous cursor structure from Ecore_Wl2_Pointer
Chris Michael [Wed, 26 Oct 2016 15:00:33 +0000 (11:00 -0400)]
ecore-wl2: Remove erroneous cursor structure from Ecore_Wl2_Pointer

These fields in Ecore_Wl2_Pointer were never used, so remove them.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Ensure we remove the proper pointer frame callback
Chris Michael [Wed, 26 Oct 2016 14:54:58 +0000 (10:54 -0400)]
ecore-wl2: Ensure we remove the proper pointer frame callback

During the pointer frame callback, if we had a 'callback' but did not
have an input->cursor.frame_cb then we would have ended up deleting
the callback here anyway. Let's add a comparison of the callback to
the pointer frame callback to ensure we are removing the proper
callback.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Remove usage of pointer update timer
Chris Michael [Wed, 26 Oct 2016 14:53:56 +0000 (10:53 -0400)]
ecore-wl2: Remove usage of pointer update timer

As we are no longer using X pointer images, we no longer have the need
for an Ecore_Timer to update any animated X images so remove.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Remove cursor field from window structure
Chris Michael [Wed, 26 Oct 2016 14:48:05 +0000 (10:48 -0400)]
ecore-wl2: Remove cursor field from window structure

Remove the const char *cursor field from the window structure as this
is useless. It was never used for any real functional purpose.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoefl_io_copier_example: allow udp as input/source.
Gustavo Sverzut Barbieri [Wed, 26 Oct 2016 14:46:09 +0000 (12:46 -0200)]
efl_io_copier_example: allow udp as input/source.

now that we have a 'bind', let's use the given address as bind and
dial to `0.0.0.0` or `::`. This allows the dialer to receive data at
the given address and make the example useful.

7 years agoefl_net_dialer_udp_example: add missing print of groups.
Gustavo Sverzut Barbieri [Wed, 26 Oct 2016 14:24:17 +0000 (12:24 -0200)]
efl_net_dialer_udp_example: add missing print of groups.

7 years agoedje: remove extraneous new line in debug log
Jean Guyomarc'h [Wed, 26 Oct 2016 13:53:25 +0000 (15:53 +0200)]
edje: remove extraneous new line in debug log

There was an extraneous '\n' at the end of the debug log invocation.
Since a new line is already appended by eina_log, this was redundant and
made the console output ugly. It is prettier now.

7 years agoelementary: Delete mouse pointer when window is closed
Chris Michael [Wed, 26 Oct 2016 13:33:24 +0000 (09:33 -0400)]
elementary: Delete mouse pointer when window is closed

If we are running Wayland clients which create their own mouse
pointers, then we need to remove the mouse pointer ecore_evas when the
window is deleted else we get crashes because the mouse pointer is
still trying to render. This fixes the issue of internal Enlightenment
windows causing crashes when closed.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelm: Fix compilation of other apps (elm_access.eo.h)
Jean-Philippe Andre [Wed, 26 Oct 2016 10:01:52 +0000 (19:01 +0900)]
elm: Fix compilation of other apps (elm_access.eo.h)

Thanks to ApBBB on #e for the report!

7 years agoelm_test: Add minor hack to run test when Enter is pressed
Jean-Philippe Andre [Wed, 26 Oct 2016 05:01:43 +0000 (14:01 +0900)]
elm_test: Add minor hack to run test when Enter is pressed

If there's only one filtered out button in the list after
searching by name, Enter should activate the entry and run the
test case.

7 years agoexamples: Remove now broken cxx elm examples
Jean-Philippe Andre [Tue, 18 Oct 2016 10:34:25 +0000 (19:34 +0900)]
examples: Remove now broken cxx elm examples

Bubble, thumb and separator cxx examples rely on APIs we don't
want to expose in EO, so not available in C++ either. Those
are legacy only.

7 years agoelm: Remove some eo files from installation
Jean-Philippe Andre [Tue, 18 Oct 2016 10:34:12 +0000 (19:34 +0900)]
elm: Remove some eo files from installation

These are some of the EO files that shouldn't be part of the public
EO API:
- elm_access (old)
- actionslider
- bubble
- diskselector
- flipselector (a fancy spinner)
- hoversel (use combobox instead)
- icon (use image instead)
- inwin
- naviframe (unreplaced for now)
- photo (use image)
- prefs
- segment control
- separator
- slideshow
- thumb (use image)

Note: This breaks the use of the elm_widget_xxx.h headers. Those
      were internal headers anyway. Exposed because of a lack of
      a proper inheritance API.

7 years agoevas: Fix legacy events output vs. canvas coords
Jean-Philippe Andre [Mon, 17 Oct 2016 02:34:05 +0000 (11:34 +0900)]
evas: Fix legacy events output vs. canvas coords

In case of a mapped object (eg. when applying a map to a window
in wayland compositor), the canvas and output coordinates are
not meant to be the same.

In EO land, applications should instead use the common interface
Efl.Input.Interface.pointer_xy.get (on the canvas).

@fix

7 years agoeo: do not track NULL future.
Cedric Bail [Wed, 26 Oct 2016 01:51:12 +0000 (18:51 -0700)]
eo: do not track NULL future.

7 years agoecore: allow multiple nested recursion of the same promise/future to happen at the...
Cedric Bail [Wed, 26 Oct 2016 01:50:35 +0000 (18:50 -0700)]
ecore: allow multiple nested recursion of the same promise/future to happen at the same time.

7 years agoeio: fetch mime type asynchronously.
Cedric Bail [Tue, 25 Oct 2016 23:54:29 +0000 (16:54 -0700)]
eio: fetch mime type asynchronously.

7 years agoecore: properly handle promise failure when each member has not been fulfilled yet.
Cedric Bail [Tue, 25 Oct 2016 22:21:51 +0000 (15:21 -0700)]
ecore: properly handle promise failure when each member has not been fulfilled yet.

7 years agoelementary: fixup warning in new colorselector code.
Cedric Bail [Tue, 25 Oct 2016 22:03:26 +0000 (15:03 -0700)]
elementary: fixup warning in new colorselector code.

7 years agoelementary: fix build without wayland.
Cedric Bail [Tue, 25 Oct 2016 22:02:46 +0000 (15:02 -0700)]
elementary: fix build without wayland.

7 years agoelementary: gengrid - check the edge correctly
Minkyu Kang [Tue, 25 Oct 2016 21:12:42 +0000 (14:12 -0700)]
elementary: gengrid - check the edge correctly

Summary:
The routine of checking edge of left side, divide position by row.
Since the result of fisrt item of last line is 1, that item was not checked as edge.
This patch is for fixing it.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Test Plan:
elementary_test -to gengrid2
append items (about 6)
horizontal mode on and item loop enable
check item loop is working properly

Reviewers: cedric, jpeg, Hermet, SanghyeonLee

Subscribers: jehun.lim, SanghyeonLee, cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
7 years agoelementary: enable setting custom access info to hoversel items
Shuhrat Dehkanov [Tue, 25 Oct 2016 20:33:36 +0000 (13:33 -0700)]
elementary: enable setting custom access info to hoversel items

Summary: This will enable apps to get item access object using elm_object_item_access_object_get().

Reviewers: jpeg, Hermet

Subscribers: kimcinoo, singh.amitesh, cedric, minkyu

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
7 years agoelementary: colorselector - apply new focus ui for palette and components items
Taehyub Kim [Tue, 25 Oct 2016 20:32:50 +0000 (13:32 -0700)]
elementary: colorselector - apply new focus ui for palette and components items

Summary:
colorselector focus ui is not moving for palette and components items.
now it is changed to focus each item of palette and components.

Test Plan:
1. build efl elementary with this patch
2. remove /home/{user}/.elementary
3. launch colorselector with elementary_test -to colorselector
4. move direction key
5. see the new focus ui

Reviewers: jpeg, raster, Hermet, woohyun, bu5hm4n, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
7 years agoevas: vg/gradient - add missing legacy api for gradient object creation.
Subhransu Mohanty [Tue, 25 Oct 2016 20:31:45 +0000 (13:31 -0700)]
evas: vg/gradient - add missing legacy api for gradient object creation.

Reviewers: jpeg, Hermet, artem.popov, cedric

Reviewed By: artem.popov, cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
7 years agouse more standard IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP.
Gustavo Sverzut Barbieri [Tue, 25 Oct 2016 21:32:07 +0000 (19:32 -0200)]
use more standard IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP.

The IPV6_ADD_MEMBERSHIP and IPV6_DROP_MEMBERSHIP are deprecated alias,
use the correct defines so it compiles everywhere.

Fixes T4764

Thanks netstar!

7 years agoecore_wl2: Add API to disable session recovery
Derek Foreman [Tue, 25 Oct 2016 19:07:09 +0000 (14:07 -0500)]
ecore_wl2: Add API to disable session recovery

Enlightenment needs a way to avoid using session recovery functionality
when connecting to itself for internal windows.

7 years agoelementary: Implement support for EFL Wayland mouse pointers
Chris Michael [Tue, 25 Oct 2016 18:19:57 +0000 (14:19 -0400)]
elementary: Implement support for EFL Wayland mouse pointers

This patch implements support for EFL Wayland applications to be able
to use EFL mouse pointers instead of ugly X cursors inside a Wayland
compositor. This does Not use Softcursor so the mouse pointer becomes
it's own surface which is then sent to wl_pointer.

NB: Some small hiccups when using wayland_shm such as dropped frames.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Remove usage of libwayland-cursor
Chris Michael [Tue, 25 Oct 2016 18:18:58 +0000 (14:18 -0400)]
ecore-wl2: Remove usage of libwayland-cursor

This commit removes usage of libwayland-cursor inside Ecore_Wl2
library. This is done so that EFL Wayland applications can use EFL
mouse pointers and not look ugly :)

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Don't call cursor_update_stop function twice.
Chris Michael [Tue, 25 Oct 2016 17:10:21 +0000 (13:10 -0400)]
ecore-wl2: Don't call cursor_update_stop function twice.

When setting a cursor by name, the _ecore_wl2_input_cursor_set
function already makes a call to stop updating the cursor, so no need
to run that twice.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoefl: Remove dependency on wayland-cursor library
Chris Michael [Tue, 25 Oct 2016 15:08:16 +0000 (11:08 -0400)]
efl: Remove dependency on wayland-cursor library

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agojs: Fix calling setAlignedInternalPointerField without a aligned value
Felipe Magno de Almeida [Tue, 25 Oct 2016 17:42:49 +0000 (15:42 -0200)]
js: Fix calling setAlignedInternalPointerField without a aligned value

7 years agojs: Fix Makefile location and linking of efl.node and tests
Felipe Magno de Almeida [Tue, 25 Oct 2016 17:42:04 +0000 (15:42 -0200)]
js: Fix Makefile location and linking of efl.node and tests

7 years agoeolian: remove type silencing stuff entirely
Daniel Kolesa [Tue, 25 Oct 2016 16:02:23 +0000 (18:02 +0200)]
eolian: remove type silencing stuff entirely

this was useful during transition, but not anymore

7 years agotheme: slightly expand e/gadget/clock/digital/advanced sizer width
Mike Blumenkrantz [Tue, 25 Oct 2016 15:37:57 +0000 (11:37 -0400)]
theme: slightly expand e/gadget/clock/digital/advanced sizer width