platform/upstream/efl.git
7 years agoecore-evas: remove float comparison warnings for ecore_evas.c
Chris Michael [Tue, 20 Dec 2016 15:28:39 +0000 (10:28 -0500)]
ecore-evas: remove float comparison warnings for ecore_evas.c

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_filter_mixin
Chris Michael [Tue, 20 Dec 2016 15:25:01 +0000 (10:25 -0500)]
evas: remove float comparison warnings for evas_filter_mixin

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_convert_color
Chris Michael [Tue, 20 Dec 2016 15:23:12 +0000 (10:23 -0500)]
evas: remove float comparison warnings for evas_convert_color

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_canvas3d_primitive
Chris Michael [Tue, 20 Dec 2016 15:22:22 +0000 (10:22 -0500)]
evas: remove float comparison warnings for evas_canvas3d_primitive

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_canvas3d_mesh
Chris Michael [Tue, 20 Dec 2016 15:21:16 +0000 (10:21 -0500)]
evas: remove float comparison warnings for evas_canvas3d_mesh

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_canvas3d_scene
Chris Michael [Tue, 20 Dec 2016 15:17:47 +0000 (10:17 -0500)]
evas: remove float comparison warnings for evas_canvas3d_scene

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_canvas3d_node
Chris Michael [Tue, 20 Dec 2016 15:16:35 +0000 (10:16 -0500)]
evas: remove float comparison warnings for evas_canvas3d_node

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_cs2_client
Chris Michael [Tue, 20 Dec 2016 15:08:14 +0000 (10:08 -0500)]
evas: remove float comparison warnings for evas_cs2_client

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_cache2
Chris Michael [Tue, 20 Dec 2016 15:06:44 +0000 (10:06 -0500)]
evas: remove float comparison warnings for evas_cache2

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_cache_image
Chris Michael [Tue, 20 Dec 2016 15:05:48 +0000 (10:05 -0500)]
evas: remove float comparison warnings for evas_cache_image

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_object_textgrid
Chris Michael [Tue, 20 Dec 2016 15:03:32 +0000 (10:03 -0500)]
evas: remove float comparison warnings for evas_object_textgrid

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for efl_canvas_image
Chris Michael [Tue, 20 Dec 2016 15:02:48 +0000 (10:02 -0500)]
evas: remove float comparison warnings for efl_canvas_image

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for efl_input_pointer
Chris Michael [Tue, 20 Dec 2016 15:02:36 +0000 (10:02 -0500)]
evas: remove float comparison warnings for efl_input_pointer

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_map
Chris Michael [Tue, 20 Dec 2016 14:47:57 +0000 (09:47 -0500)]
evas: remove float comparison warnings for evas_map

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_object_textblock
Chris Michael [Tue, 20 Dec 2016 14:44:54 +0000 (09:44 -0500)]
evas: remove float comparison warnings for evas_object_textblock

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_object_text
Chris Michael [Tue, 20 Dec 2016 14:38:42 +0000 (09:38 -0500)]
evas: remove float comparison warnings for evas_object_text

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warning for evas_object_box
Chris Michael [Tue, 20 Dec 2016 14:34:32 +0000 (09:34 -0500)]
evas: remove float comparison warning for evas_object_box

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warning for evas_object_table
Chris Michael [Tue, 20 Dec 2016 14:31:27 +0000 (09:31 -0500)]
evas: remove float comparison warning for evas_object_table

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warning for evas_object_main
Chris Michael [Tue, 20 Dec 2016 14:29:49 +0000 (09:29 -0500)]
evas: remove float comparison warning for evas_object_main

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas: remove float comparison warnings for evas_events
Chris Michael [Tue, 20 Dec 2016 14:16:43 +0000 (09:16 -0500)]
evas: remove float comparison warnings for evas_events

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas-x: remove float comparison warning from X backend
Chris Michael [Tue, 20 Dec 2016 13:54:01 +0000 (08:54 -0500)]
ecore-evas-x: remove float comparison warning from X backend

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas-wayland: remove float comparison warning from wayland backend
Chris Michael [Tue, 20 Dec 2016 13:53:16 +0000 (08:53 -0500)]
ecore-evas-wayland: remove float comparison warning from wayland backend

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas - async preload - stop hang when missing wakeup of preload data
Carsten Haitzler (Rasterman) [Tue, 20 Dec 2016 13:35:56 +0000 (22:35 +0900)]
evas - async preload - stop hang when missing wakeup of preload data

this isn't pretty and i think some stuff needs a redesign... but...
this should fix T5025

@fix

7 years agoecore_con_legacy: fix compatibility behavior (eos-mark on receiver done).
Gustavo Sverzut Barbieri [Tue, 20 Dec 2016 12:12:59 +0000 (10:12 -0200)]
ecore_con_legacy: fix compatibility behavior (eos-mark on receiver done).

While a socket can be closed to receive data resulting in EOS, it
could still be used to send stuff. Then it won't result in "finished",
just "read,finished" event.

However, previously this was considered a disconnect and we must
respect this otherwise tests (Ecore_Con_Eet suite) will hang waiting
for a disconnect.

7 years agoefl_io_buffered_stream: eos-mark and flush sender on close.
Gustavo Sverzut Barbieri [Tue, 20 Dec 2016 12:11:21 +0000 (10:11 -0200)]
efl_io_buffered_stream: eos-mark and flush sender on close.

By marking EOS on the outgoing queue we allow the sender to flush
pending data if that's possible.

This also fixes a typo in the condition for eos_mark, it operates on
outgoing, not incoming queue.

7 years agoefl_io_reader/writer: silent errors when operating on unset-objects.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 23:59:57 +0000 (21:59 -0200)]
efl_io_reader/writer: silent errors when operating on unset-objects.

if we're operating on unset objects, fd are now -1 and would complain,
relax that.

7 years agoefl_io_buffered_stream: if there is a copier, check if it's done.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 23:43:56 +0000 (21:43 -0200)]
efl_io_buffered_stream: if there is a copier, check if it's done.

Before we're exiting if there was nothing pending, but in some cases
this was too aggressive as the copier's source may be alive (ie:
not-EOS), however nothing was read to its internal buffer, thus no
pending.

Since the copier will track its source's EOS, just check if it's done.

7 years agoefl_io_copier: fix typo in efl_io_copier_flush().
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 23:43:07 +0000 (21:43 -0200)]
efl_io_copier: fix typo in efl_io_copier_flush().

We should check if destination 'can write', not source.

7 years agodo not emit events from efl_io_closer_close() on destructor.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 22:31:11 +0000 (20:31 -0200)]
do not emit events from efl_io_closer_close() on destructor.

On destructor we're not supposed to emit events, I even thought that
would be implicit, but it's not. If we do, for example an event
handler that would 'efl_del()' on "EFL_IO_CLOSER_EVENT_CLOSED" would
trigger too-many unrefs.

7 years agoefl_io_reader/writer: always set 'can_*' to FALSE on errors.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 21:56:22 +0000 (19:56 -0200)]
efl_io_reader/writer: always set 'can_*' to FALSE on errors.

If user tries to read or write and that fails then set 'can_read' or
'can_write' to false, regardless of the error code.

7 years agoefl_io_copier: avoid extra copy, todo--.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 21:04:24 +0000 (19:04 -0200)]
efl_io_copier: avoid extra copy, todo--.

Avoid the intermediate buffer and use the new eina_binbuf_expand() +
eina_binbuf_use(), reading directly to the binbuf.

7 years agoefl_io_copier: remove TODO leftovers.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 19:23:52 +0000 (17:23 -0200)]
efl_io_copier: remove TODO leftovers.

Copier is based on Efl.Io.Reader.can_read,changed and
Efl.Io.Writer.can_write,changed, these events do not keep being posted
until it's actually read/written, instead they trigger only once when
the property change -- unlike Efl.Loop_Fd read/write events.

7 years agoeina_binbuf: allow expand & usage of extra bytes.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 20:35:38 +0000 (18:35 -0200)]
eina_binbuf: allow expand & usage of extra bytes.

Some code needs to read directly into eina_binbuf to avoid an extra
copy from eina_binbuf_append* variants.

This can be achieved by using eina_binbuf_expand(), which returns a
write-able slice of the spare bytes. Once they are used,
eina_binbuf_use() should be called to increment "buf->len", which is
used by all other binbuf functions such as eina_binbuf_length_get() or
eina_binbuf_append_slice().

7 years agoeo_debug: print tracebacks for more errors.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 22:33:06 +0000 (20:33 -0200)]
eo_debug: print tracebacks for more errors.

If eo_debug (libeo_dbg/EO_DEBUG), then print tracebacks if lifecycle
is being tracked.

7 years agoelm_scroller: focus_next needs to give itself when no focusable child
WooHyun Jung [Tue, 20 Dec 2016 10:38:47 +0000 (19:38 +0900)]
elm_scroller: focus_next needs to give itself when no focusable child

@fix

7 years agodocs: elm: fix stack_base property doc to cover getter function as well
Stefan Schmidt [Tue, 20 Dec 2016 08:12:27 +0000 (09:12 +0100)]
docs: elm: fix stack_base property doc to cover getter function as well

Documenting the property itself will make sure getter as well as setter
are documented.

7 years agowin: Fix shadow warnings
Jean-Philippe Andre [Tue, 20 Dec 2016 07:07:50 +0000 (16:07 +0900)]
win: Fix shadow warnings

7 years agoRevert "evas: Add source_region property to proxy objects"
Jean-Philippe Andre [Tue, 20 Dec 2016 06:47:54 +0000 (15:47 +0900)]
Revert "evas: Add source_region property to proxy objects"

This reverts commit 4e110a34bffe09abe4dd793f9ecf1cf3884ccf22.

Urgh. I'm stupid. Conceptually I still like the idea of the
region proxy, that only renders part of the source object
in a proxy surface. The problem right now is that the proxy
subrender mechanism renders to a surface that belongs to
the **source** and not the proxy object. As a consequence,
the region would become a property of the source, rather than
the proxy, which is not at all the intention of the original
patch. In other words, everything would fall apart if an object
has more than one proxy, for whatever reason.

I realized that when trying to actually test the region proxy.
It didn't work at all. Revert for now.

7 years agoEcore_win32: do not handle WM_SYSKEY* events.
Mykyta Biliavskyi [Tue, 20 Dec 2016 06:35:32 +0000 (08:35 +0200)]
Ecore_win32: do not handle WM_SYSKEY* events.

Summary:
In case if WM_SYSKEYDOWN or WM_SYSKEYUP events are handled in
DefWindowProc - system doesn't init event for a system shortcuts.
For example any EFL application on Windows couldn't be closed by
Alt+F4 combination.

@fix

Test Plan:
Launch Elemenatry_test app.
           Try to close by Alt+F4 combination.

Reviewers: vtorri, raster

Reviewed By: raster

Subscribers: an.kroitor, bowonryu, cedric, jpeg, #eflete

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

7 years agoefl stack wins - add base property/boolean to indicate win is a base
Carsten Haitzler (Rasterman) [Mon, 19 Dec 2016 06:39:36 +0000 (15:39 +0900)]
efl stack wins - add base property/boolean to indicate win is a base

part of adding stacks...

7 years agoevas/ply: Add filename in error logs
Jean-Philippe Andre [Tue, 20 Dec 2016 00:56:40 +0000 (09:56 +0900)]
evas/ply: Add filename in error logs

As suggested by @k-s

I'm pretty sure that this parser will easily fail. Eg. find uchar
properties but it's not r,g,b in this exact order? No color for you.
Find no uchar at all? Fail immediately even if we can handle a
no color situation just fine.

7 years agoelm_test: Also filter categories when typing in search bar
Jean-Philippe Andre [Mon, 19 Dec 2016 04:24:12 +0000 (13:24 +0900)]
elm_test: Also filter categories when typing in search bar

7 years agoecore: remove float comparison warning from Ecore_Animator code.
Cedric BAIL [Tue, 20 Dec 2016 00:33:19 +0000 (16:33 -0800)]
ecore: remove float comparison warning from Ecore_Animator code.

7 years agoecore: remove float comparison warning from Ecore_Poller code.
Cedric BAIL [Tue, 20 Dec 2016 00:32:51 +0000 (16:32 -0800)]
ecore: remove float comparison warning from Ecore_Poller code.

7 years agoecore: remove floating point comparison warning from Ecore_Thread code.
Cedric BAIL [Tue, 20 Dec 2016 00:32:20 +0000 (16:32 -0800)]
ecore: remove floating point comparison warning from Ecore_Thread code.

7 years agoecore: remove floating point comparison warning from Ecore main loop code.
Cedric BAIL [Tue, 20 Dec 2016 00:31:49 +0000 (16:31 -0800)]
ecore: remove floating point comparison warning from Ecore main loop code.

7 years agoecore: remove float comparison warning from Ecore_Pipe.
Cedric BAIL [Tue, 20 Dec 2016 00:31:21 +0000 (16:31 -0800)]
ecore: remove float comparison warning from Ecore_Pipe.

7 years agoefl: remove float comparison warning from Efl.Gfx.Path code.
Cedric BAIL [Tue, 20 Dec 2016 00:30:46 +0000 (16:30 -0800)]
efl: remove float comparison warning from Efl.Gfx.Path code.

7 years agoecore_evas: remove float comparison warning from DRM backend.
Cedric BAIL [Tue, 20 Dec 2016 00:30:08 +0000 (16:30 -0800)]
ecore_evas: remove float comparison warning from DRM backend.

7 years agoeina fixup matrix test
Cedric BAIL [Tue, 20 Dec 2016 00:29:52 +0000 (16:29 -0800)]
eina fixup matrix test

7 years agoevas: get rid of float comparison warning in Evas_3D.
Cedric BAIL [Tue, 20 Dec 2016 00:28:43 +0000 (16:28 -0800)]
evas: get rid of float comparison warning in Evas_3D.

7 years agoeina: get rid of float comparison warning on quaternion tests.
Cedric BAIL [Tue, 20 Dec 2016 00:28:10 +0000 (16:28 -0800)]
eina: get rid of float comparison warning on quaternion tests.

7 years agoeina: get rid of float comparison warning on quad tests.
Cedric BAIL [Tue, 20 Dec 2016 00:27:51 +0000 (16:27 -0800)]
eina: get rid of float comparison warning on quad tests.

7 years agoeina: get rid of float comparison warning from str test.
Cedric BAIL [Tue, 20 Dec 2016 00:27:22 +0000 (16:27 -0800)]
eina: get rid of float comparison warning from str test.

7 years agoeina: use proper logic for comparing double in matrix tests.
Cedric BAIL [Tue, 20 Dec 2016 00:26:22 +0000 (16:26 -0800)]
eina: use proper logic for comparing double in matrix tests.

7 years agoeina fixup bezier
Cedric BAIL [Mon, 19 Dec 2016 23:20:10 +0000 (15:20 -0800)]
eina fixup bezier

7 years agoxcf: fix float comparison in xcf generic loader.
Cedric BAIL [Mon, 19 Dec 2016 20:11:37 +0000 (12:11 -0800)]
xcf: fix float comparison in xcf generic loader.

7 years agoeina: fix double comparison in eina quaternion.
Cedric BAIL [Mon, 19 Dec 2016 20:10:51 +0000 (12:10 -0800)]
eina: fix double comparison in eina quaternion.

7 years agoeina: fix double comparison in eina matrix.
Cedric BAIL [Mon, 19 Dec 2016 20:10:30 +0000 (12:10 -0800)]
eina: fix double comparison in eina matrix.

7 years agoeina: fix double comparison in eina bezier.
Cedric BAIL [Mon, 19 Dec 2016 20:10:15 +0000 (12:10 -0800)]
eina: fix double comparison in eina bezier.

7 years agoeina: correctly compar double in eina xattr test.
Cedric BAIL [Mon, 19 Dec 2016 20:04:48 +0000 (12:04 -0800)]
eina: correctly compar double in eina xattr test.

7 years agoeio: correctly compar double in xattr test.
Cedric BAIL [Mon, 19 Dec 2016 20:04:24 +0000 (12:04 -0800)]
eio: correctly compar double in xattr test.

7 years agoeina: add general purpose function to compar float and double.
Cedric BAIL [Mon, 19 Dec 2016 20:03:49 +0000 (12:03 -0800)]
eina: add general purpose function to compar float and double.

7 years agowayland_egl: Use common implementation of eglCreateImage
Derek Foreman [Mon, 19 Dec 2016 22:14:46 +0000 (16:14 -0600)]
wayland_egl: Use common implementation of eglCreateImage

This might fix nested compositors on some architectures...

7 years agowayland_egl: Remove some weirdness from our egl extension queries
Derek Foreman [Mon, 19 Dec 2016 22:13:48 +0000 (16:13 -0600)]
wayland_egl: Remove some weirdness from our egl extension queries

Still totally wrong, of course, but at least a little less wacky.

7 years agogl_x11: Use common implementation of eglCreateImage
Derek Foreman [Mon, 19 Dec 2016 21:51:30 +0000 (15:51 -0600)]
gl_x11: Use common implementation of eglCreateImage

Throw away the local copy and use the one in gl_common.

7 years agogl_drm: Use common eglCreateImage implementation
Derek Foreman [Mon, 19 Dec 2016 21:27:44 +0000 (15:27 -0600)]
gl_drm: Use common eglCreateImage implementation

Refactor to reduce copy and paste.

7 years agogl_common: Make secsym_eglCreateImage a wrapper
Derek Foreman [Mon, 19 Dec 2016 20:33:09 +0000 (14:33 -0600)]
gl_common: Make secsym_eglCreateImage a wrapper

eglCreateImage and eglCreateImageKHR are subtly different.  Now we try to
handle them both properly by exposing an abstraction.

7 years agoector_gl: Add some EGL typedefs to internal header
Derek Foreman [Mon, 19 Dec 2016 20:28:49 +0000 (14:28 -0600)]
ector_gl: Add some EGL typedefs to internal header

This lets us include EGL/egl.h in gl_common.

7 years agogl_common: fix eglCreateImageKHR query
Derek Foreman [Mon, 19 Dec 2016 20:06:51 +0000 (14:06 -0600)]
gl_common: fix eglCreateImageKHR query

There are surprisingly few GL extensions that start with GL_EGL...

This is apparently more widely deployed than OES, so let's bump its
priority too.

7 years agoefl_net_server_udp_client: make error easier to understand.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 19:19:45 +0000 (17:19 -0200)]
efl_net_server_udp_client: make error easier to understand.

UDP client has no socket on its own, so it can't be marked as
close-on-exec, however failing to resolve the method is bad as
confuses the user.

Instead provide a method that checks if the setting is different from
parent, in such case provide a meaningful message. Otherwise just be
quiet.

7 years agoefl_net_socket_udp: expose init() as protected method.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 19:11:46 +0000 (17:11 -0200)]
efl_net_socket_udp: expose init() as protected method.

remove one more TODO: since Efl.Net.Ip.Address was introduced we can
now expose Efl.Net.Socket.Udp.init as a protected method that will
configure the internal address we use for the remote peer. This allow
subclasses to override or call such methods.

7 years agoefl_net_socket_ssl: remove TODO leftover.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 18:52:29 +0000 (16:52 -0200)]
efl_net_socket_ssl: remove TODO leftover.

There are no jobs to stop there, it was a left over since this code
was somehow derived from Efl.Loop_Fd where "read" and "write" would
constantly be called until the kernel flag was cleared, there the
callback must be removed to stop jobs, not here.

7 years agoefl_io_buffer: adopt read-only and read-write buffers.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 18:49:29 +0000 (16:49 -0200)]
efl_io_buffer: adopt read-only and read-write buffers.

todo--, allow buffer backing store to be provided by Eina_Slice
(rdonly) or Eina_Rw_Slice (rdwr).

7 years agoevas: improve logic regarding events filtering enablement
Bruno Dilly [Mon, 19 Dec 2016 15:58:01 +0000 (13:58 -0200)]
evas: improve logic regarding events filtering enablement

Only the size of events_whitelist isn't enough, because in some
cases the user may be disabling the usage of a specific seat.

Considering the following scenario, the issue will easy to understand:
 - an application with two entries (one to be used by seat 1 and other
     by seat 2)
 - the first seat is announced - it is enabled for entry 1 and
     disabled for entry 2
 - the second seat is announced

Before second seat is announced, the first seat would be able
to input the entry 1, because the events_whitelist of such
object will continue empty.

So a flag will be used to identify an object with active
filter.

Reviewed By: iscaro

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

7 years agoevas: remove focus when removed from filter whitelist
Bruno Dilly [Fri, 16 Dec 2016 20:11:05 +0000 (18:11 -0200)]
evas: remove focus when removed from filter whitelist

It doesn't make sense to remove it when a seat is added
to the list. It should be removed only when this seat
is blocked.

But when the list receives its first item, then
it also should be checked if the focused seat
is the one just added, otherwise the previous one
must be removed.

7 years agotests/ecore_con: skip ipv6 tests if that's disabled on the running system.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 17:49:16 +0000 (15:49 -0200)]
tests/ecore_con: skip ipv6 tests if that's disabled on the running system.

7 years agomore eo simplified to use Eina_Slice instead of pointer to.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 17:27:34 +0000 (15:27 -0200)]
more eo simplified to use Eina_Slice instead of pointer to.

Working directly with Eina_Slice is easier than a pointer to it,
requires no validation of the pointers and is cheap since it's just
putting together size_t + void*.

However we can't hint the user of 'const(Eina.Slice)' properties as
Eolian is incorrectly generating getters as:

   const Eina_Slice class_property_get(...)

which is makes compilers complain about ignored qualifiers:

   ../src/lib/ecore/efl_io_copier.eo.h:329:7: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]

Leave some TODO so @q66 can fix those.

7 years agoEfl.Io.{Queue,Buffer,Buffered_Stream}: slice_get is now a property.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 16:46:37 +0000 (14:46 -0200)]
Efl.Io.{Queue,Buffer,Buffered_Stream}: slice_get is now a property.

Previously we couldn't return a slice, instead required the user to
pass a slice and we'd fill it since Eolian couldn't generate fallbacks
for structures.

Since @q66 fixed eolian, we can now return the structure itself as
initially wanted, ditching some TODO from the code.

7 years agoMerge branch 'devs/bdilly/edje_multiseat'
Bruno Dilly [Mon, 19 Dec 2016 17:19:06 +0000 (15:19 -0200)]
Merge branch 'devs/bdilly/edje_multiseat'

This series implement multiseat support on Edje:
 * emit signals with seat name as suffix
 * handle multiseat focus
 * add optional argument to FOCUS_SET and FOCUS_OBJECT actions
   to specify a seat
 * add Edje naming for seats (incremental) with flag
   to disable this behaviour - so custom (evas) names will be used
 * add 3 examples exploring all these new features

Reviewed By: cedric, iscaro, jpeg

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

@feature

7 years agoedje/examples: add example of use_custom_seat_names flag
Bruno Dilly [Wed, 14 Dec 2016 19:47:18 +0000 (17:47 -0200)]
edje/examples: add example of use_custom_seat_names flag

Since seat names defined on evas will depend on evas backends,
maybe udev rules, etc, we aren't able to demonstrate it
without manually setting another name for such seats
with efl_input_devices_name_set(). Otherwise
we wouldn't have guarantees it would match
names on EDC.

7 years agoedje/examples: add example for focus actions
Bruno Dilly [Wed, 14 Dec 2016 17:47:20 +0000 (15:47 -0200)]
edje/examples: add example for focus actions

Just a regular (non multiseat) focus example for
actions FOCUS_SET and FOCUS_OBJECT

7 years agoedje: add flag to choose between evas or edje seat naming
Bruno Dilly [Tue, 6 Dec 2016 17:06:38 +0000 (15:06 -0200)]
edje: add flag to choose between evas or edje seat naming

collections.group.use_custom_seat_names should be set to '1'
to use seat names on signals as provided by Evas.

By default just follow Edje naming approach
("seat1", "seat2", ...)

7 years agoexamples/edje: add dynamic seats example
Bruno Dilly [Mon, 5 Dec 2016 22:41:33 +0000 (20:41 -0200)]
examples/edje: add dynamic seats example

It's an example of how themes can be implemented even if the number
of seats using the UI is unknown, and how it can be done
using scripts or C code.

7 years agoedje: support action seats on edje_edit
Bruno Dilly [Mon, 5 Dec 2016 17:24:35 +0000 (15:24 -0200)]
edje: support action seats on edje_edit

7 years agoedje: accept optional seat parameter on FOCUS_OBJECT
Bruno Dilly [Fri, 2 Dec 2016 19:50:43 +0000 (17:50 -0200)]
edje: accept optional seat parameter on FOCUS_OBJECT

If not provided, FOCUS_OBJECT action will keep acting
over default seat.

Also include a usage on edje-multiseat test
(actually no example was exercising this action).

7 years agoexamples/edje: add multiseat example
Bruno Dilly [Thu, 3 Nov 2016 21:10:51 +0000 (19:10 -0200)]
examples/edje: add multiseat example

7 years agoedje: add names for seats following an incremental pattern
Bruno Dilly [Wed, 30 Nov 2016 21:52:14 +0000 (19:52 -0200)]
edje: add names for seats following an incremental pattern

This way it'll be possible to write EDC with seat names that
will work no matter how seats are named by each ecore_evas
backend or users.

7 years agoedje: support seat on focus action and signals
Bruno Dilly [Thu, 17 Nov 2016 17:21:02 +0000 (15:21 -0200)]
edje: support seat on focus action and signals

Seat goes as an optional parameter for FOCUS_SET (if not
provided, act over default seat), and emit signals
with seat suffix:
 * focus,in,$SEAT
 * focus,out,$SEAT
 * focus,part,in,$SEAT
 * focus,part,out,$SEAT

7 years agoedje: add new signals providing seat information
Bruno Dilly [Tue, 8 Nov 2016 19:50:23 +0000 (17:50 -0200)]
edje: add new signals providing seat information

Add the following signals:
 * mouse,in,$SEAT
 * mouse,out,$SEAT
 * mouse,move,$SEAT
 * mouse,clicked,$BUTTON,$SEAT
 * hold,on,$SEAT
 * hold,off,$SEAT
 * drag,$SEAT
 * drag,start,$SEAT
 * drag,stop,$SEAT

7 years agoevas: add getter for devices by name
Bruno Dilly [Thu, 17 Nov 2016 18:50:44 +0000 (16:50 -0200)]
evas: add getter for devices by name

Make it possible to get the evas device given
its name. It sounds useful for Edje since
programs will reference seats by name.

7 years agobuild: enable -Wfloat-equal for compiling
Mike Blumenkrantz [Mon, 19 Dec 2016 16:08:43 +0000 (11:08 -0500)]
build: enable -Wfloat-equal for compiling

 #WarningOfTheMonth

7 years agoecore_con/ecore_ipc: flush should wait for connection.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 14:57:09 +0000 (12:57 -0200)]
ecore_con/ecore_ipc: flush should wait for connection.

Some applications will create the handle, immediately send data, flush
and delete it, expecting the data to be sent to remote peer.

This is a bad behavior as the application would become unresponsive
until the connection is established, data can be written (since
depends on server consuming it), then allow it to be closed.

A proper behavior here would be to chain based on events, with the
usage of a copier would be simply wait for "done" event.

However the legacy API allowed this and terminology depends on this
awkward "feature", thus be bug-compatible.

This fixes T5015.

7 years agoefl_io_file: initialize all fd to -1.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 14:51:56 +0000 (12:51 -0200)]
efl_io_file: initialize all fd to -1.

Since 0 is a valid fd, we should initialize these to -1.

7 years agoefl_net_socket_fd: initialize fds to INVALID_SOCKET
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 14:47:13 +0000 (12:47 -0200)]
efl_net_socket_fd: initialize fds to INVALID_SOCKET

Since 0 is a valid fd, then we'd try to do socket operations on it,
which would generate misleading errors.

7 years agoecore_con/ecore_ipc legacy: fail early for local sockets.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 13:58:55 +0000 (11:58 -0200)]
ecore_con/ecore_ipc legacy: fail early for local sockets.

In the old/legacy API the socket would be opened early in non-blocking
mode (connect returned errno==EINPROGRESS), with UNIX socket being
path-validated early and returning NULL as 'server' handle.

Some applications relied on this instead of monitoring the "ERROR"
events, considering the connection to be successful if there was a
handle -- this was the case with Terminology after it moved from DBus
to Ecore_Ipc.

Although this is not correct, we must keep compatibility and thus we
stat() in compatibility layer, failing early as the old API would do.

7 years agoecore_con/ecore_ipc: keep log domain alive after shutdown.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 13:37:24 +0000 (11:37 -0200)]
ecore_con/ecore_ipc: keep log domain alive after shutdown.

These legacy API had the nasty behavior of keeping handles alive until
the pending events were dispatched, this could happen after the module
itself was shutdown, resulting in log to unregistered domains.

Then do not unregister the domain -- eina_shutdown will avoid leaks
anyway.

7 years agoelput: Fix resource leak
Chris Michael [Mon, 19 Dec 2016 14:49:36 +0000 (09:49 -0500)]
elput: Fix resource leak

Coverty reports that we leak 'reply' here if we fall into the error
condition.

CID1367506

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelput: Fix resource leak
Chris Michael [Mon, 19 Dec 2016 14:48:30 +0000 (09:48 -0500)]
elput: Fix resource leak

Coverity reports that 'reply' is leaked here if we fall into the error
condition.

CID1367507

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agocoverity: add modeling file to reduce false positives.
Gustavo Sverzut Barbieri [Mon, 19 Dec 2016 13:09:02 +0000 (11:09 -0200)]
coverity: add modeling file to reduce false positives.