platform/upstream/efl.git
7 years agoevas: Try to fix compilation with EGLAttrib
Jean-Philippe Andre [Tue, 20 Dec 2016 08:07:50 +0000 (17:07 +0900)]
evas: Try to fix compilation with EGLAttrib

7 years agoevas: Fix image save with GL engine and orientation
Jean-Philippe Andre [Tue, 20 Dec 2016 08:56:09 +0000 (17:56 +0900)]
evas: Fix image save with GL engine and orientation

This fixes evas_object_image_save after changing the orientation
of an image in the GL engine. In SW engine the pixel data is rotated
in memory, so things worked fine from the beginning. In GL we may
have to go through loops and hoops in order to rotate and fetch the
data from the GL texture.

This should fix ce45d44.

7 years agoecore_evas_convert: Fix crazy use of objects from a thread
Jean-Philippe Andre [Tue, 20 Dec 2016 10:00:10 +0000 (19:00 +0900)]
ecore_evas_convert: Fix crazy use of objects from a thread

I did that originally to implement a slightly nice way for
Ctrl+C to work. But it was clearly a hack (as mentioned in
the comments), and stopped working since domains were
introduced.

Should we rename this standalone tool as "efl_image_convert",
or even just "efl_convert"?

7 years agoelmentary: prevent crash in multibuttonentry.
Woochan Lee [Wed, 21 Dec 2016 00:08:42 +0000 (16:08 -0800)]
elmentary: prevent crash in multibuttonentry.

Summary: Do Null checking to prevent crash, if 'elm_object_text_get()' return NULL here.

Reviewers: Hermet, woohyun, jpeg, cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agodoxygen: remove reference warnings.
Jee-Yong Um [Wed, 21 Dec 2016 00:06:20 +0000 (16:06 -0800)]
doxygen: remove reference warnings.

Reviewers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoeina: add api for assessing the relative position of two rectangles
Marcel Hollerbach [Wed, 21 Dec 2016 00:04:29 +0000 (16:04 -0800)]
eina: add api for assessing the relative position of two rectangles

Summary:
the api returns if a rectangle is positioned above/below/right or left
of a other rectangle.

Code which does simular things are part of verne and e, i think its a good idea to provide api for that.

Test Plan: Just run the test suite

Reviewers: raster, jpeg, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoedje: fix float comparison warning in vector loading logic.
Cedric BAIL [Wed, 21 Dec 2016 00:03:11 +0000 (16:03 -0800)]
edje: fix float comparison warning in vector loading logic.

Hum, there is no use of our fixed point infrastructure for vector.

7 years agoedje: fix float comparison warning in edje programs.
Cedric BAIL [Wed, 21 Dec 2016 00:02:02 +0000 (16:02 -0800)]
edje: fix float comparison warning in edje programs.

7 years agoedje: fix float comparison warning in edje text logic.
Cedric BAIL [Wed, 21 Dec 2016 00:01:01 +0000 (16:01 -0800)]
edje: fix float comparison warning in edje text logic.

7 years agoedje: fix float comparison warning in edje edit logic.
Cedric BAIL [Wed, 21 Dec 2016 00:00:26 +0000 (16:00 -0800)]
edje: fix float comparison warning in edje edit logic.

7 years agoedje: fix float comparison warning in edje callback code.
Cedric BAIL [Wed, 21 Dec 2016 00:00:05 +0000 (16:00 -0800)]
edje: fix float comparison warning in edje callback code.

7 years agoedje: fix float comparison warning in edje calc.
Cedric BAIL [Tue, 20 Dec 2016 23:59:46 +0000 (15:59 -0800)]
edje: fix float comparison warning in edje calc.

7 years agoedje: fix float comparison warning in Box Layout logic.
Cedric BAIL [Tue, 20 Dec 2016 23:58:48 +0000 (15:58 -0800)]
edje: fix float comparison warning in Box Layout logic.

7 years agoedje: fix float comparison warning in edje_cc.
Cedric BAIL [Tue, 20 Dec 2016 23:47:57 +0000 (15:47 -0800)]
edje: fix float comparison warning in edje_cc.

7 years agoedje: fix float comparison warning in edje_external_inspector.
Cedric BAIL [Tue, 20 Dec 2016 23:47:31 +0000 (15:47 -0800)]
edje: fix float comparison warning in edje_external_inspector.

7 years agoedje: fix float comparison warning in edje SVG loader.
Cedric BAIL [Tue, 20 Dec 2016 23:47:06 +0000 (15:47 -0800)]
edje: fix float comparison warning in edje SVG loader.

7 years agoedje: fix float comparison warning in edje_pick.
Cedric BAIL [Tue, 20 Dec 2016 23:46:43 +0000 (15:46 -0800)]
edje: fix float comparison warning in edje_pick.

7 years agoedje: add infrastructure to test value.
Cedric BAIL [Wed, 21 Dec 2016 00:01:28 +0000 (16:01 -0800)]
edje: add infrastructure to test value.

7 years agoelementary: fix float comparison warning in player.
Cedric BAIL [Tue, 20 Dec 2016 23:44:51 +0000 (15:44 -0800)]
elementary: fix float comparison warning in player.

7 years agoelementary: fix float comparison warning in popup.
Cedric BAIL [Tue, 20 Dec 2016 23:44:32 +0000 (15:44 -0800)]
elementary: fix float comparison warning in popup.

7 years agoelementary: fix float comparison warning in multi button entry.
Cedric BAIL [Tue, 20 Dec 2016 23:42:00 +0000 (15:42 -0800)]
elementary: fix float comparison warning in multi button entry.

7 years agoelementary: fix float comparison warning in action slider.
Cedric BAIL [Tue, 20 Dec 2016 23:41:41 +0000 (15:41 -0800)]
elementary: fix float comparison warning in action slider.

7 years agoelementary: fix float comparison warning in c&p.
Cedric BAIL [Tue, 20 Dec 2016 23:41:23 +0000 (15:41 -0800)]
elementary: fix float comparison warning in c&p.

7 years agoelementary: fix float comparison warning in button.
Cedric BAIL [Tue, 20 Dec 2016 23:39:35 +0000 (15:39 -0800)]
elementary: fix float comparison warning in button.

7 years agoelementary: fix float comparison warning for panes.
Cedric BAIL [Tue, 20 Dec 2016 23:39:08 +0000 (15:39 -0800)]
elementary: fix float comparison warning for panes.

7 years agoelementary: fix float comparison warning in map.
Cedric BAIL [Tue, 20 Dec 2016 23:17:01 +0000 (15:17 -0800)]
elementary: fix float comparison warning in map.

7 years agoelementary: fix float warning in scroller.
Cedric BAIL [Tue, 20 Dec 2016 23:16:17 +0000 (15:16 -0800)]
elementary: fix float warning in scroller.

7 years agoelementary: fix float comparison warning in thumb.
Cedric BAIL [Tue, 20 Dec 2016 23:15:51 +0000 (15:15 -0800)]
elementary: fix float comparison warning in thumb.

7 years agoelementary: fix float warning in progressbar.
Cedric BAIL [Tue, 20 Dec 2016 23:14:14 +0000 (15:14 -0800)]
elementary: fix float warning in progressbar.

7 years agoelementary: fix float warning in Efl.Ui.Image.
Cedric BAIL [Tue, 20 Dec 2016 23:12:33 +0000 (15:12 -0800)]
elementary: fix float warning in Efl.Ui.Image.

7 years agoelementary: fix float comparison warning in photocam.
Cedric BAIL [Tue, 20 Dec 2016 23:10:54 +0000 (15:10 -0800)]
elementary: fix float comparison warning in photocam.

7 years agoelementary: fix float warning in Efl.Ui.Box_Layout.
Cedric BAIL [Tue, 20 Dec 2016 22:58:57 +0000 (14:58 -0800)]
elementary: fix float warning in Efl.Ui.Box_Layout.

7 years agoelementary: fix float comparison warning in flip page test.
Cedric BAIL [Tue, 20 Dec 2016 22:55:21 +0000 (14:55 -0800)]
elementary: fix float comparison warning in flip page test.

7 years agoelementary: fix float comparison warning in bg test.
Cedric BAIL [Tue, 20 Dec 2016 22:54:59 +0000 (14:54 -0800)]
elementary: fix float comparison warning in bg test.

7 years agoevas_cserve2: fix float comparison warning.
Cedric BAIL [Tue, 20 Dec 2016 22:53:32 +0000 (14:53 -0800)]
evas_cserve2: fix float comparison warning.

7 years agoethumb: fix float comparison warning.
Cedric BAIL [Tue, 20 Dec 2016 22:52:53 +0000 (14:52 -0800)]
ethumb: fix float comparison warning.

7 years agoecore_input_evas: fix float comparison warning.
Cedric BAIL [Tue, 20 Dec 2016 18:22:37 +0000 (10:22 -0800)]
ecore_input_evas: fix float comparison warning.

7 years agotriangulator: fix float comparison warning.
Cedric BAIL [Tue, 20 Dec 2016 18:21:02 +0000 (10:21 -0800)]
triangulator: fix float comparison warning.

7 years agoevas: fix proper operator ordering with parentheses.
Cedric BAIL [Tue, 20 Dec 2016 18:04:54 +0000 (10:04 -0800)]
evas: fix proper operator ordering with parentheses.

7 years agoefl: in read only case this might get uninitialized.
Cedric BAIL [Tue, 20 Dec 2016 17:40:03 +0000 (09:40 -0800)]
efl: in read only case this might get uninitialized.

7 years agoMerge branch 'devs/iscaro/ecore_evas_cursor'
Bruno Dilly [Tue, 20 Dec 2016 20:35:14 +0000 (18:35 -0200)]
Merge branch 'devs/iscaro/ecore_evas_cursor'

This series add new APIs to get the pointer position and set the
pointer icon by device

Patches by Guilherme Iscaro <iscaro@profusion.mobi>

Reviewed By: bdilly, jpeg, zmike

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

7 years agoEcore Evas: Add a new cursor example.
Guilherme Iscaro [Fri, 2 Dec 2016 19:17:53 +0000 (17:17 -0200)]
Ecore Evas: Add a new cursor example.

This example sets the cursor image of each available mouse and
report its position every one second.

7 years agoEcore Evas: Add support for multiple mouse positions.
Guilherme Iscaro [Wed, 30 Nov 2016 15:29:19 +0000 (13:29 -0200)]
Ecore Evas: Add support for multiple mouse positions.

Since it's possible to have more than one mouse, Ecore Evas
must take into account the position of all mouses and update them
correctly.

7 years agoEcore Evas: Add support to set cursor icon per mouse device.
Guilherme Iscaro [Tue, 22 Nov 2016 18:14:03 +0000 (16:14 -0200)]
Ecore Evas: Add support to set cursor icon per mouse device.

Since Ecore Evas now supports multiple mouses new APIs were added
in order to be able to set the cursor image to any device.

7 years agoEcore Evas VNC: Add support for ecore_evas_pointer_device_xy_get().
Guilherme Iscaro [Mon, 21 Nov 2016 19:05:18 +0000 (17:05 -0200)]
Ecore Evas VNC: Add support for ecore_evas_pointer_device_xy_get().

This commit adds the support to fetch the mouse position of a VNC
client.

7 years agoEcore Wl2: Add ecore_wl2_window_pointer_device_xy_get() API.
Guilherme Iscaro [Mon, 21 Nov 2016 17:57:05 +0000 (15:57 -0200)]
Ecore Wl2: Add ecore_wl2_window_pointer_device_xy_get() API.

This commit adds a Wayland specific function to fetch a mouse
position.

7 years agoEcore Evas: Add API to set/get the pointer position per device.
Guilherme Iscaro [Mon, 21 Nov 2016 17:11:08 +0000 (15:11 -0200)]
Ecore Evas: Add API to set/get the pointer position per device.

Since Ecore Evas now support multiple mouse devices new APIs were
added in order to fetch the mouse position.

7 years agoeolian-cxx: Add std::move to member variable initialization
Felipe Magno de Almeida [Tue, 20 Dec 2016 18:55:59 +0000 (15:55 -0300)]
eolian-cxx: Add std::move to member variable initialization

CID 1361231

7 years agoeolian-cxx: Make class_definition lambda's catch parameter by const-reference
Felipe Magno de Almeida [Tue, 20 Dec 2016 18:50:18 +0000 (15:50 -0300)]
eolian-cxx: Make class_definition lambda's catch parameter by const-reference

CID 1361230
CID 1361234

7 years agoeina-cxx: Add visit_unsafe to eina::variant and make ~variant possibly noexcept
Felipe Magno de Almeida [Tue, 20 Dec 2016 18:33:57 +0000 (15:33 -0300)]
eina-cxx: Add visit_unsafe to eina::variant and make ~variant possibly noexcept

visit_unsafe member function visits the variant but assumes the
pre-condition that the variant is not empty. This avoids the
possibility of throwing an exception when the destructors
of the types used in variant are also guaranteed to be
noexcept.

CID 1367508

7 years agoeina-cxx: Add move constructor and move assignment operator for eina::variant
Felipe Magno de Almeida [Tue, 20 Dec 2016 18:26:35 +0000 (15:26 -0300)]
eina-cxx: Add move constructor and move assignment operator for eina::variant

CID 1362797

7 years agoheaders: update copyright
Derek Foreman [Tue, 20 Dec 2016 16:24:50 +0000 (10:24 -0600)]
headers: update copyright

7 years agoembryo: Fix typo in float comparison 'fix'
Chris Michael [Tue, 20 Dec 2016 16:27:18 +0000 (11:27 -0500)]
embryo: Fix typo in float comparison 'fix'

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoRevert "ethumb: remove float comparison warnings"
Chris Michael [Tue, 20 Dec 2016 16:26:10 +0000 (11:26 -0500)]
Revert "ethumb: remove float comparison warnings"

This broke building and needs to be fixed differently

This reverts commit 8120572d08ef39a6f3a1a1cff0be912fa469c85d.

7 years agoembryo: Fix typo
Chris Michael [Tue, 20 Dec 2016 16:20:43 +0000 (11:20 -0500)]
embryo: Fix typo

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoethumb: remove float comparison warnings
Chris Michael [Tue, 20 Dec 2016 16:16:59 +0000 (11:16 -0500)]
ethumb: remove float comparison warnings

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoevas engines: Use EGLImageKHR instead of EGLImage
Derek Foreman [Tue, 20 Dec 2016 15:34:07 +0000 (09:34 -0600)]
evas engines: Use EGLImageKHR instead of EGLImage

If someone's trying to build efl git with 2.5 year old EGL headers they get
a break on missing EGLImage...

We should probably consider keeping an up to date copy of the EGL headers
in efl.  There may be someone out there with even older headers.

7 years agoemotion: remove float comparison warnings
Chris Michael [Tue, 20 Dec 2016 16:13:40 +0000 (11:13 -0500)]
emotion: remove float comparison warnings

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoembryo: remove float comparison warnings
Chris Michael [Tue, 20 Dec 2016 16:03:50 +0000 (11:03 -0500)]
embryo: remove float comparison warnings

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoefreet: remove float comparison warnings
Chris Michael [Tue, 20 Dec 2016 16:01:27 +0000 (11:01 -0500)]
efreet: remove float comparison warnings

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoector: remove float comparison warnings
Chris Michael [Tue, 20 Dec 2016 15:59:55 +0000 (10:59 -0500)]
ector: remove float comparison warnings

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

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-fb: remove float comparison warnings for ecore_fb_li
Chris Michael [Tue, 20 Dec 2016 15:30:04 +0000 (10:30 -0500)]
ecore-fb: remove float comparison warnings for ecore_fb_li

Signed-off-by: Chris Michael <cp.michael@samsung.com>
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