platform/upstream/efl.git
7 years agoecore_evas/wayland: handle added / removed seats
Bruno Dilly [Mon, 3 Oct 2016 15:34:10 +0000 (12:34 -0300)]
ecore_evas/wayland: handle added / removed seats

Create or delete evas_devices with class EVAS_DEVICE_CLASS_SEAT
for seats on each ecore_evas created so far.

Initially it's named considering its Wayland id.

7 years agoecore_evas/wayland: remove unnecessary NULL attributions
Bruno Dilly [Mon, 3 Oct 2016 14:19:22 +0000 (11:19 -0300)]
ecore_evas/wayland: remove unnecessary NULL attributions

When freeing wdata there is no reason to set each
freed field to NULL.

7 years agoevas: Fix doxygen and normalize function signature
Bruno Dilly [Mon, 3 Oct 2016 13:21:47 +0000 (10:21 -0300)]
evas: Fix doxygen and normalize function signature

On recently added function evas_device_add_full()

7 years agoEvas Device: Avoid invalid ptr indirection.
Guilherme Iscaro [Tue, 1 Nov 2016 18:03:52 +0000 (16:03 -0200)]
Evas Device: Avoid invalid ptr indirection.

Summary:
When Evas is deleted the function _evas_device_cleanup() goes thru all
devices and unref them. Since Evas_Devices are Efl_Input_Device, the user
may still hold a reference to the device (efl_ref()),
thus causing the device to do not be deleted *yet*.
This causes a problem, because when the user calls efl_unref()
and the device itself is deleted the Evas _del_cb
callback will be called and will try to access the Evas_Public_Data from
a deleted object.
In order to avoid this problem all devices will be kept in the devices
list and Evas will unregister the EFL_EVENT_DEL from those devices that
were not deleted.

Reviewers: jpeg, bdilly, barbieri, cedric

Reviewed By: bdilly, cedric

Subscribers: cedric, jpeg

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

7 years agoelementary: Use software engine for wayland client pointers
Chris Michael [Tue, 1 Nov 2016 14:52:49 +0000 (10:52 -0400)]
elementary: Use software engine for wayland client pointers

There seem to be an issue with the ecore_evas_wayland_egl engine when
using them for cursors. The issue is that a black square shows up
behind the mouse pointer. This does not happen with the wayland_shm
engine so use wayland_shm engine for mouse pointers (for now) until
this can be sorted out.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agodocs: add missing docs for the rest of efl interfaces
Stefan Schmidt [Tue, 1 Nov 2016 13:18:26 +0000 (14:18 +0100)]
docs: add missing docs for the rest of efl interfaces

7 years agodocs: efl_text: ad missing docs for efl_text* interfaces
Stefan Schmidt [Tue, 1 Nov 2016 13:17:50 +0000 (14:17 +0100)]
docs: efl_text: ad missing docs for efl_text* interfaces

7 years agodocs: efl_image: add missing docs for efl_image_* interfaces
Stefan Schmidt [Tue, 1 Nov 2016 13:15:30 +0000 (14:15 +0100)]
docs: efl_image: add missing docs for efl_image_* interfaces

7 years agodocs: efl_pack: add missing docs for efl_pack_* interfaces
Stefan Schmidt [Tue, 1 Nov 2016 13:14:19 +0000 (14:14 +0100)]
docs: efl_pack: add missing docs for efl_pack_* interfaces

7 years agodocs: efl_io: add missing docs for efl_io_* interfaces
Stefan Schmidt [Tue, 1 Nov 2016 13:13:42 +0000 (14:13 +0100)]
docs: efl_io: add missing docs for efl_io_* interfaces

7 years agodocs: efl_gfx: add missing docs for efl_gfx_* interfaces
Stefan Schmidt [Tue, 1 Nov 2016 13:11:52 +0000 (14:11 +0100)]
docs: efl_gfx: add missing docs for efl_gfx_* interfaces

7 years agodocs: efl_ui: add missing docs for efl_ui_* interfaces
Stefan Schmidt [Tue, 1 Nov 2016 13:11:10 +0000 (14:11 +0100)]
docs: efl_ui: add missing docs for efl_ui_* interfaces

7 years agoexamples/ecore: command to generate OpenSSL PEM files.
Gustavo Sverzut Barbieri [Tue, 1 Nov 2016 13:52:21 +0000 (11:52 -0200)]
examples/ecore: command to generate OpenSSL PEM files.

it's cumbersome to remember these commands and without them it's hard
to test the SSL server examples, so add a make rule for that.

7 years agoefl_net_server_example: oops, do not assume all servers are Efl.Net.Server.Fd
Gustavo Sverzut Barbieri [Tue, 1 Nov 2016 12:45:38 +0000 (10:45 -0200)]
efl_net_server_example: oops, do not assume all servers are Efl.Net.Server.Fd

SSL server is not an Fd, it contains one internally, but that's
hidden. So call proper methods.

7 years agoScroller test: add a page_size spinner
Dave Andreoli [Tue, 1 Nov 2016 08:53:39 +0000 (09:53 +0100)]
Scroller test: add a page_size spinner

and also #define the PAGESIZE

7 years agoelm: Fix disappearance of some elm images
Jean-Philippe Andre [Tue, 1 Nov 2016 06:49:20 +0000 (15:49 +0900)]
elm: Fix disappearance of some elm images

After the commit 97c9fa64a461c (Remove group_show and group_hide),
some Efl.Ui.Image objects would not render properly. The reason
being that the object call to show() was aborted too early when
the image is still preloading.

This made for really random results as an image preload could
take more or less time, depending on chance.

7 years agoefl_net_{server,dialer}_ssl: TCP + SSL easy to use.
Gustavo Sverzut Barbieri [Tue, 1 Nov 2016 03:31:56 +0000 (01:31 -0200)]
efl_net_{server,dialer}_ssl: TCP + SSL easy to use.

in the previous commit we're manually upgrading an existing TCP socket
to SSL. It is desired since some protocols need to negotiate, like
STARTTLS and the likes

Now we offer 2 classes that does autostart SSL once the socket is
ready.

7 years agoefl_net_ssl: fix build on LibreSSL and BSD
Gustavo Sverzut Barbieri [Tue, 1 Nov 2016 00:28:41 +0000 (22:28 -0200)]
efl_net_ssl: fix build on LibreSSL and BSD

As usual thanks to @netstar for quickly spotting the problem :-)

Fixes: T4811

7 years agoefl_net_socket_ssl: initial SSL wrapper.
Gustavo Sverzut Barbieri [Sat, 29 Oct 2016 00:48:19 +0000 (22:48 -0200)]
efl_net_socket_ssl: initial SSL wrapper.

This is the first step towards SSL connections on top of sockets, with
an example on how to upgrade a dialer and a server client using TCP.

7 years agoefl_io_copier: do not ERROR on EAGAIN.
Gustavo Sverzut Barbieri [Fri, 28 Oct 2016 23:11:17 +0000 (21:11 -0200)]
efl_io_copier: do not ERROR on EAGAIN.

As done by write, if we try to read and we can't, then don't give
up. This happens with streams that wraps another, like SSL, may report
there are data to read, but once you try it may not result in enough
data to upper layers.

7 years agoefl_net_socket_fd: do not act if already closed, do not set eos.
Gustavo Sverzut Barbieri [Fri, 28 Oct 2016 00:26:02 +0000 (22:26 -0200)]
efl_net_socket_fd: do not act if already closed, do not set eos.

It's pointless to reset eos, if it was set, keep it like that.

7 years agoecore_getopt: allow empty strings as parameters.
Gustavo Sverzut Barbieri [Thu, 27 Oct 2016 22:57:47 +0000 (20:57 -0200)]
ecore_getopt: allow empty strings as parameters.

Sometimes we want to specify an empty string, that should be allowed.

7 years agoremove incorrect EINA_UNUSED.
Gustavo Sverzut Barbieri [Thu, 27 Oct 2016 14:05:50 +0000 (12:05 -0200)]
remove incorrect EINA_UNUSED.

7 years agoecore-wl2: Unify surface creation code
Chris Michael [Mon, 31 Oct 2016 18:03:30 +0000 (14:03 -0400)]
ecore-wl2: Unify surface creation code

As we call the same code during ecore_wl2_window_surface_get and
ecore_wl2_window_show functions that basically create the wl_surface
for a given window we can unify that code into one function that can
be called from various places. This also fixes an issue inside
ecore_wl2_window_show where the window surface_id may not have been
getting filled properly.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agodocs: efl_canvas: fill in missing docs for efl_canvas interface
Stefan Schmidt [Mon, 31 Oct 2016 13:21:06 +0000 (14:21 +0100)]
docs: efl_canvas: fill in missing docs for efl_canvas interface

7 years agodocs: efl_animator: fill in missing docs for efl_animator interface
Stefan Schmidt [Mon, 31 Oct 2016 13:20:44 +0000 (14:20 +0100)]
docs: efl_animator: fill in missing docs for efl_animator interface

7 years agodocs: efl_gfx: fill in missing docs for efl_gfx interface
Stefan Schmidt [Mon, 31 Oct 2016 13:02:25 +0000 (14:02 +0100)]
docs: efl_gfx: fill in missing docs for efl_gfx interface

7 years agoAdd 2 buttons in the Scroller test to reveal one more bug
Dave Andreoli [Mon, 31 Oct 2016 16:35:05 +0000 (17:35 +0100)]
Add 2 buttons in the Scroller test to reveal one more bug

the buttons should scroll up and down by 1 px, but nothing move here

That test was still broken in other ways, for example:
play a bit with the "to X Y" buttons and see if it always do the correct thing

7 years agoedje_edit: generate to source code base_scale if it different from 1.0
Vyacheslav Reutskiy [Mon, 31 Oct 2016 11:16:36 +0000 (13:16 +0200)]
edje_edit: generate to source code base_scale if it different from 1.0

Fixes T4767

7 years agoemotion gst1 module - disable subtitles by default as that should be
Carsten Haitzler (Rasterman) [Mon, 31 Oct 2016 10:46:06 +0000 (19:46 +0900)]
emotion gst1 module - disable subtitles by default as that should be

there are spu apis to turn subtitles on and off and this should be off
until turned on by api. you really have to be able to choose the
subtitles to display - eg language etc. to use them effectively.

this fixes T4795

@fix

7 years agoecore audio - fix hang in wayland due to pulse audio connecting to x
Carsten Haitzler (Rasterman) [Mon, 31 Oct 2016 04:55:07 +0000 (13:55 +0900)]
ecore audio - fix hang in wayland due to pulse audio connecting to x

pulse insists on connecting to the xserver on init/setup context if:

1. DISPLAY is set
AND
2. DISPLAY is not empty

so to do a pretty horrible worka-round, empty off the display if its
set so pa doesnt go connect to x and do this if WAYLAND_DISPLAy is set
assuming we'll use wayland then. this is far better than a solid
rock-hard hang. :)

@fix

7 years agoelm_entry: Add voice input panel layout
InHong Han [Wed, 3 Aug 2016 07:40:24 +0000 (16:40 +0900)]
elm_entry: Add voice input panel layout

@feature

Change-Id: I41502d2446b95a4be31fc60a8d995b9d37930844
Signed-off-by: InHong Han <inhong1.han@samsung.com>
7 years agoecore_audio: deprecating enum is apparently not supported in every version of gcc.
Cedric Bail [Sun, 30 Oct 2016 22:49:54 +0000 (15:49 -0700)]
ecore_audio: deprecating enum is apparently not supported in every version of gcc.

7 years agotests: fix eolian_cxx tests with clang
Jean Guyomarc'h [Sun, 30 Oct 2016 18:12:24 +0000 (19:12 +0100)]
tests: fix eolian_cxx tests with clang

eolian_cxx tests failed to link because of massively inexistant symbols.

I assume eolian_cxx tests have been working at some point. Maybe they
were gcc-only? I don't get what's going on with gcc and non-existant
symbols. Is there a sugar-coating of some kind? Because when a symbol
does not exist, clang throws you away. Is it because we are only
referring to the eo implementation functions via function pointers?
That's the second time I'm doing a fix like this. Maybe we should change
a bit our linking flags (see --unresolved-symbols in ld)??

Anyway, now we have our symbols. Clang is happy, make check can go on...

7 years agoecore_con: fix structure declaration
Jean Guyomarc'h [Sun, 30 Oct 2016 17:40:54 +0000 (18:40 +0100)]
ecore_con: fix structure declaration

Clang raised a massive amount of warnings due to the struct sockaddr_un
not being declared before using it. So, include the header that declares
this structure first.

7 years agoecore_cocoa: fix handling of some keys
Jean Guyomarc'h [Sun, 30 Oct 2016 15:35:56 +0000 (16:35 +0100)]
ecore_cocoa: fix handling of some keys

The ascii circumflex (^) can be typed by pressing twice the ^ key on a
mac keyboard. A single press allows composition (e.g. ^+e = ê).
Pressing ^ twice though, led to a segmentation fault in elementary,
because the result character of the operation (^) appeared in the raw
characters stack, and not in the filtered one.
This is a bit weird, as backtick (`) appears in the filtered keys stack.

@fix

7 years agoecore_cocoa: prettify code a bit
Jean Guyomarc'h [Sun, 30 Oct 2016 15:34:35 +0000 (16:34 +0100)]
ecore_cocoa: prettify code a bit

Remove extraneous whitespaces, use appropriate macros when possible,
and mark a memory allocation failure as an unlikely case.

7 years agoecore_cocoa: fix behaviour of option key
Jean Guyomarc'h [Sun, 30 Oct 2016 15:18:41 +0000 (16:18 +0100)]
ecore_cocoa: fix behaviour of option key

Commit e44c48b90408d2518e2708090796988cfd3cacea failed to translate the
deprecated API into the Sierra API... replacing the Command key flags
by the Option key flags. This resulted of Opt+q quitting the program.

@fix

7 years agoecore_cocoa: allow to override termination sequence
Jean Guyomarc'h [Sun, 2 Oct 2016 12:22:53 +0000 (14:22 +0200)]
ecore_cocoa: allow to override termination sequence

7 years agoautotools: stop summoning systemd's infernal cow
Jean Guyomarc'h [Sat, 29 Oct 2016 21:31:28 +0000 (23:31 +0200)]
autotools: stop summoning systemd's infernal cow

Systemd support has now been enabled by default on all capable
platforms. By explicitely providing --disable-systemd, one can disable
its integration to EFL.
When I litterally write that I don't want systemd support, please
don't tell me to enable it. It's almost a passive aggression there ;)

7 years agoecore_audio: drop support for CoreAudio on macOS
Jean Guyomarc'h [Sat, 29 Oct 2016 20:32:19 +0000 (22:32 +0200)]
ecore_audio: drop support for CoreAudio on macOS

CoreAudio support was initially introduced by commit
62e29b39f4df40fd3c0a6b17f7a16f0f8fc1d0c9 as an experimental feature.

It played basic sounds, but suffered from drawbacks: it was controlling
the master channel, and therefore any sound played by ecore_audio would
shut down a previous sound (e.g. background music) for the time of the
sound being played. So that wasn't exactly great... Also, after some
time, some hangs have been reported when playing a sound on input. Most
of the time, it translated as a pause in the main loop (see T3797).
More recently (several months ago), ecore_audio with CoreAudio stopped
working during 1.19 development...

So... CoreAudio support on macOS has never been great. And now it's fully
broken. Instead of trying to revive the thing, let just use PulseAudio.
PulseAudio can be installed without any trouble on macOS thanks to
package managers such as Homebrew. Actually, the efl package provided by
Homebrew already provides PulseAudio as a dependency. And it actually
just works very fine. Dropping CoreAudio seems therefore a nice option:
removes unmaintained code, fixes bugs, and add features.

7 years agoelm win - add ifdef around wl code so it compiles with wl off
Carsten Haitzler (Rasterman) [Sat, 29 Oct 2016 01:15:40 +0000 (10:15 +0900)]
elm win - add ifdef around wl code so it compiles with wl off

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.