platform/upstream/efl.git
8 years agoelementary: switch to legacy API for tests.
Cedric Bail [Tue, 7 Jun 2016 23:29:32 +0000 (16:29 -0700)]
elementary: switch to legacy API for tests.

8 years agoedje: fix unused variable when gettext is disabled
Jean Guyomarc'h [Tue, 7 Jun 2016 17:29:29 +0000 (19:29 +0200)]
edje: fix unused variable when gettext is disabled

8 years agoecore_cocoa: simplify clipboard functions naming
Jean Guyomarc'h [Tue, 7 Jun 2016 19:42:46 +0000 (21:42 +0200)]
ecore_cocoa: simplify clipboard functions naming

ecore_cocoa_selection_clipboard_xxxx() have been renamed into
ecore_cocoa_clipboard_xxxx() and they have nothing to do with
selection, only with clipboard.

Since the API is not stable yet, I can change it.

8 years agoecore_cocoa: move the default cursor definition out of the enum
Jean Guyomarc'h [Tue, 7 Jun 2016 19:08:08 +0000 (21:08 +0200)]
ecore_cocoa: move the default cursor definition out of the enum

This makes the code more explicit and less awkward.

8 years agoecore_cocoa: improve documentation
Jean Guyomarc'h [Tue, 7 Jun 2016 19:04:25 +0000 (21:04 +0200)]
ecore_cocoa: improve documentation

8 years agoelementary: Remove set but unused variable
Chris Michael [Tue, 7 Jun 2016 17:37:53 +0000 (13:37 -0400)]
elementary: Remove set but unused variable

This variable looks like it may be used in the future, but for now
just causes additional compiler warnings so comment it out for now.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoecore-wl2: Support wl_seat_listener version 4
Chris Michael [Tue, 7 Jun 2016 17:36:18 +0000 (13:36 -0400)]
ecore-wl2: Support wl_seat_listener version 4

This patch adds support for wl_seat_listener version 4 (which is used
in wayland 1.11). We do not actually make use of the seat callback for
name yet, but when the rest of multi-seat issues are sorted, we may
need this.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoRevert "elput: Missing pointer initialization."
Chris Michael [Tue, 7 Jun 2016 16:09:20 +0000 (12:09 -0400)]
Revert "elput: Missing pointer initialization."

Reverting this as the initialization of char *s was already set to
NULL in a previous patch, so the 'if (s)' check here is pointless
really as 'man 3 free' says passing NULL to free() is ok.

This reverts commit ad2e21b02399c02a748bb8b8ab0dc10f85e6662d.

8 years agoedje_edit: text style should be able to set into NULL
Vitalii Vorobiov [Tue, 7 Jun 2016 14:56:40 +0000 (17:56 +0300)]
edje_edit: text style should be able to set into NULL

@fix

8 years agoefl_ui_win: rename elm_win to efl_ui_win
Ji-Youn Park [Tue, 7 Jun 2016 14:41:48 +0000 (23:11 +0830)]
efl_ui_win: rename elm_win to efl_ui_win

8 years agoeolian: support @ref on returns
Daniel Kolesa [Tue, 7 Jun 2016 13:59:36 +0000 (14:59 +0100)]
eolian: support @ref on returns

This adds basic support for @ref on return types.

8 years agoedje_edit: fix copy&paste type for map functions which should return int
Vitalii Vorobiov [Tue, 7 Jun 2016 13:57:02 +0000 (16:57 +0300)]
edje_edit: fix copy&paste type for map functions which should return int

zplane and focal actually returns int, not Eina_Bool

@fix

8 years agoelput: Missing pointer initialization.
Benjamin Jacobs [Tue, 7 Jun 2016 13:42:49 +0000 (09:42 -0400)]
elput: Missing pointer initialization.

Summary:
Calling free() on an uninitialized pointer leads to crash, that can occurs
when sd_session_get_seat fails.
Fixes T3785.

Reviewers: devilhorns

Subscribers: cedric, jpeg

Maniphest Tasks: T3785

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

@fix

8 years agoEvas: Fix propagation of key events
Jean-Philippe Andre [Tue, 7 Jun 2016 12:46:54 +0000 (21:46 +0900)]
Evas: Fix propagation of key events

UP/DOWN arrows were having effects on both focus and entry cursor
moves. This was due to an invalid propagation of the changes to
event_flags (on_hold).

Fixes T3845

8 years agoexamples: ecore: do not try to install files which are not available
Stefan Schmidt [Tue, 7 Jun 2016 12:13:30 +0000 (14:13 +0200)]
examples: ecore: do not try to install files which are not available

The ecore_audio examples have been disabled and now do not compile right now.
But as they are disabled they never land in the tarball and thus we error out
with files not aviavle for install. Found by the OpenSUSE build service. Thanks
Simotek for reporting.

[ 2172s] /home/abuild/rpmbuild/BUILD/efl-1.17.99.47400/install-sh: ecore_audio_custom.c does not
exist.

8 years agoexamples: eio: update gitignore for new binaries
Stefan Schmidt [Tue, 7 Jun 2016 09:56:29 +0000 (11:56 +0200)]
examples: eio: update gitignore for new binaries

8 years agoexamples: evas: update gitignore for new binary
Stefan Schmidt [Tue, 7 Jun 2016 09:56:07 +0000 (11:56 +0200)]
examples: evas: update gitignore for new binary

8 years agoefl: Bump required wayland version
Chris Michael [Tue, 7 Jun 2016 12:04:10 +0000 (08:04 -0400)]
efl: Bump required wayland version

This makes our wayland libraries require newest wayland release of 1.11

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoelementary: Remove unused variable
Chris Michael [Tue, 7 Jun 2016 11:58:19 +0000 (07:58 -0400)]
elementary: Remove unused variable

Gcc says that 'model' is unused here, so comment it out

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoelm_win: Disable legacy for name and type set
Jean-Philippe Andre [Tue, 7 Jun 2016 11:36:40 +0000 (20:36 +0900)]
elm_win: Disable legacy for name and type set

Those are only valid during eo_add, before finalize.
Both of these are constructors.

8 years agoRevert "Revert "Revert "Revert "elm ctxpopup: fix auto_hide mode to work correctly""""
Hermet Park [Tue, 7 Jun 2016 10:50:50 +0000 (19:50 +0900)]
Revert "Revert "Revert "Revert "elm ctxpopup: fix auto_hide mode to work correctly""""

This reverts commit 95620c6b60643a2326d73141e64447385c28e6e5.

Revert again, because this obviously fixes a bug...

8 years agoRevert "Revert "Revert "elm ctxpopup: fix auto_hide mode to work correctly"""
Hermet Park [Tue, 7 Jun 2016 10:39:00 +0000 (19:39 +0900)]
Revert "Revert "Revert "elm ctxpopup: fix auto_hide mode to work correctly"""

This reverts commit 0907217be5cf68a377e0ceacf776535acdc38531.

append comment there.

8 years agoRevert "Revert "elm ctxpopup: fix auto_hide mode to work correctly""
Hermet Park [Tue, 7 Jun 2016 10:33:36 +0000 (19:33 +0900)]
Revert "Revert "elm ctxpopup: fix auto_hide mode to work correctly""

This reverts commit 5ddc7c36f9ed3b995b43c31eab3fdf4d27db74df.

8 years agoRevert "elm ctxpopup: fix auto_hide mode to work correctly"
Hermet Park [Tue, 7 Jun 2016 10:10:50 +0000 (19:10 +0900)]
Revert "elm ctxpopup: fix auto_hide mode to work correctly"

This reverts commit a428e1e7125f28e41532c659b9e31a8ff0bb5d11.

please don't accept patches if the discussion hasn't been finalizied between a submitter and the reviewers.

8 years agopo: follow file rename for elm_flip to efl_ui_flip change
Stefan Schmidt [Tue, 7 Jun 2016 09:04:25 +0000 (11:04 +0200)]
po: follow file rename for elm_flip to efl_ui_flip change

8 years agoelm_win: Add back title_set as text.set
Jean-Philippe Andre [Tue, 7 Jun 2016 08:43:45 +0000 (17:43 +0900)]
elm_win: Add back title_set as text.set

Title and name are two different things.
See 466d9fbaf1319db4df9d576bdbe196f2557f6.

8 years agoelm ctxpopup: fix auto_hide mode to work correctly
Taehyub Kim [Tue, 7 Jun 2016 08:19:15 +0000 (17:19 +0900)]
elm ctxpopup: fix auto_hide mode to work correctly

@fix

Summary: fixx auto_hide mode to work correctly

Test Plan:
1. launch elementary_test - ctxpopup
2. click normal ctxpopup and auto_hide ctxpopup sample
3. check the auto_hide function whether it is work well or not

Reviewers: Jaehyun_Cho, raster, jpeg, cedric, singh.amitesh, DaveMDS, Hermet

Reviewed By: DaveMDS

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

8 years agopdf: Fix build with poppler >= 0.40
Jean-Philippe Andre [Tue, 7 Jun 2016 07:25:45 +0000 (16:25 +0900)]
pdf: Fix build with poppler >= 0.40

This disables PDF load if poppler >= 0.40 (current is 0.42 on
my machine). Those image loaders definitely should be explicitely
enabled or disabled, not enabled based on the system.

8 years agoecore_wl2: Fix uninitialized fields in function array
Jean-Philippe Andre [Tue, 7 Jun 2016 06:27:07 +0000 (15:27 +0900)]
ecore_wl2: Fix uninitialized fields in function array

Ping @devilhorns

8 years agowl_shm: Fix uninitialized warning
Jean-Philippe Andre [Tue, 7 Jun 2016 06:11:27 +0000 (15:11 +0900)]
wl_shm: Fix uninitialized warning

warning: variable 'surf' is used uninitialized whenever 'if' condition
is true [-Wsometimes-uninitialized]

8 years agogl_drm: Fix shadow warning
Jean-Philippe Andre [Tue, 7 Jun 2016 06:10:28 +0000 (15:10 +0900)]
gl_drm: Fix shadow warning

8 years agoeio: Fix build for windows
Jean-Philippe Andre [Tue, 7 Jun 2016 06:03:45 +0000 (15:03 +0900)]
eio: Fix build for windows

dllimport vs dllexport problem due to invalid include order.
Thanks @vtorri for the report

See 1ba06bb6429d6199714

8 years agotests: Fix previous patch (forgot to amend changes)
Jean-Philippe Andre [Tue, 7 Jun 2016 05:35:02 +0000 (14:35 +0900)]
tests: Fix previous patch (forgot to amend changes)

8 years agoelm_test: Fix potential crash and garbage printf
Jean-Philippe Andre [Tue, 7 Jun 2016 05:05:41 +0000 (14:05 +0900)]
elm_test: Fix potential crash and garbage printf

8 years agogl_x11: Working GLES2 fallback.
Benjamin Jacobs [Tue, 7 Jun 2016 04:58:13 +0000 (13:58 +0900)]
gl_x11: Working GLES2 fallback.

Summary:
Disables GLES3 support when it cannot be determined that it is
available. Prevents to repeatly request a (missing) gles3 support and
fail.
Fixes T3795.

Reviewers: jpeg

Subscribers: cedric, jpeg

Maniphest Tasks: T3795

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

8 years agotests: Fix fake event test (avoid ERR)
Jean-Philippe Andre [Tue, 7 Jun 2016 04:52:15 +0000 (13:52 +0900)]
tests: Fix fake event test (avoid ERR)

An event object was deleted carelessly.

8 years agoEvas: Fix compilation for Windows
Jean-Philippe Andre [Tue, 7 Jun 2016 04:44:30 +0000 (13:44 +0900)]
Evas: Fix compilation for Windows

Fixes T3783

8 years agoEfl.Ui.Flip: Fix compilation outside EFL
Jean-Philippe Andre [Tue, 7 Jun 2016 04:06:03 +0000 (13:06 +0900)]
Efl.Ui.Flip: Fix compilation outside EFL

After a previous patch, compilation of apps would fail
as the include order was invalid. Efl_Ui_Flip_Mode was
defined after the typedef using it unless EO APIs were
enabled.

8 years agoelm: Don't install private headers
Jean-Philippe Andre [Tue, 7 Jun 2016 01:39:31 +0000 (10:39 +0900)]
elm: Don't install private headers

Thanks tom for the report.

8 years agoefl_ui_flip: renamed elm_flip to efl_ui_flip and updated the eo class
Subhransu Mohanty [Mon, 6 Jun 2016 23:50:26 +0000 (16:50 -0700)]
efl_ui_flip: renamed elm_flip to efl_ui_flip and updated the eo class

Reviewers: woohyun, raster, jpeg, cedric

Reviewed By: jpeg, cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary/colorselector: use layout instead of edje object for components.
Shilpa Singh [Mon, 6 Jun 2016 23:47:03 +0000 (16:47 -0700)]
elementary/colorselector: use layout instead of edje object for components.

Summary:
Issue: As edje object is used instead of layout for components mode,  the content widgets like buttons are added as
subobject of colorselector hence when we unset the edje object on mode change the buttons still remain subobject of colorselector causing issues when all subobjects of colorselector is queried(sub objects are queried during atspi mode).
Soln: Use layout instead of edje object.

Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
@fix

Test Plan: Change the mode to Palette mode and access the children of colorselector.

Reviewers: Hermet, cedric

Subscribers: govi, rajeshps, kimcinoo, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary/colorselector: colornames updated with spaces.
Shilpa Singh [Mon, 6 Jun 2016 23:42:27 +0000 (16:42 -0700)]
elementary/colorselector: colornames updated with spaces.

Summary:
Colornames updated with spaces so that any TTS engine
can read them out in an understandable manner.
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
@fix

Test Plan:
Enable ATSPI mode
Tap colors and listen to colorname's

Reviewers: cedric

Subscribers: rajeshps, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary/tooltip: adjust the coordinate if tooltip was located out of screen
Minkyu Kang [Mon, 6 Jun 2016 23:41:41 +0000 (16:41 -0700)]
elementary/tooltip: adjust the coordinate if tooltip was located out of screen

Summary:
When reconfigure the tooltip as orient, the tooltip can located out of screen.
This patch will adjust the coordinate so that can be seen whole tooltip.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Reviewers: cedric, Hermet

Subscribers: seoz, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas: fix typo in description of the engine functions.
Oleksandr Shcherbina [Mon, 6 Jun 2016 23:40:23 +0000 (16:40 -0700)]
evas: fix typo in description of the engine functions.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas: fix order binding attributes to gl.
Oleksandr Shcherbina [Mon, 6 Jun 2016 23:39:38 +0000 (16:39 -0700)]
evas: fix order binding attributes to gl.

Summary:
In same cases(devices) can lead to mix up attributes in shaders.
@fix

Reviewers: cedric, Hermet, raster

Subscribers: jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas: button_mask as unsigned, UB fixes.
Benjamin Jacobs [Mon, 6 Jun 2016 23:33:54 +0000 (16:33 -0700)]
evas: button_mask as unsigned, UB fixes.

Summary:
* pointer.button is DATA32 which is unsigned, so this changes the
  definition of pointer_button_down_mask accordingly.

* Avoids UB in mask generation:
lib/evas/canvas/evas_events.c:1348:37: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore: make sure lifecycle of Efl.Loop.Fd is correct.
Cedric BAIL [Mon, 6 Jun 2016 23:28:52 +0000 (16:28 -0700)]
ecore: make sure lifecycle of Efl.Loop.Fd is correct.

8 years agoecore: properly reset fd handler when parent get deleted.
Cedric BAIL [Mon, 6 Jun 2016 23:19:55 +0000 (16:19 -0700)]
ecore: properly reset fd handler when parent get deleted.

8 years agoelementary: Fix elm_code theme lookup and use correct naming
Andy Williams [Mon, 6 Jun 2016 22:59:52 +0000 (23:59 +0100)]
elementary: Fix elm_code theme lookup and use correct naming

8 years agoecore: add a tests that ensure we do implement lifecycle correctly.
Cedric BAIL [Mon, 6 Jun 2016 21:59:36 +0000 (14:59 -0700)]
ecore: add a tests that ensure we do implement lifecycle correctly.

8 years agoecore: migrate ecore_timer lifecycle to rely cleanly on Eo lifecycle.
Cedric BAIL [Mon, 6 Jun 2016 21:59:06 +0000 (14:59 -0700)]
ecore: migrate ecore_timer lifecycle to rely cleanly on Eo lifecycle.

8 years agoeina: ensure resource destruction on failure
Jean Guyomarc'h [Mon, 6 Jun 2016 21:40:29 +0000 (23:40 +0200)]
eina: ensure resource destruction on failure

In case of failure within eina_lock_new() (posix), a
pthread_mutexattr_t would have been left in an initialized state,
without any deinitialization being called.

Consequences would have been implementation defined.

8 years agoecore-xcb: Fix XCB to be usable again
Benjamin Jacobs [Mon, 6 Jun 2016 19:46:00 +0000 (15:46 -0400)]
ecore-xcb: Fix XCB to be usable again

Summary:
Well mostly, it seems there is an issue with multi-key events and
enlightenment. Let's merge this first before opening a ticket.

Reviewers: devilhorns

Subscribers: cedric, jpeg

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

@fix

8 years agoelementary: export symbol used by tests suite.
Cedric BAIL [Mon, 6 Jun 2016 19:11:07 +0000 (12:11 -0700)]
elementary: export symbol used by tests suite.

8 years agoeina_thread.c: fix include guard.
Benjamin Jacobs [Mon, 6 Jun 2016 18:23:09 +0000 (11:23 -0700)]
eina_thread.c: fix include guard.

DragonFlyBSD has pthread_setname_np but no pthread_setaffinity_np;
we still need to include pthread_np though.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoeio: fix pointer comparison.
Benjamin Jacobs [Mon, 6 Jun 2016 18:20:37 +0000 (11:20 -0700)]
eio: fix pointer comparison.

Fix a warning on dragonfly.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_audio: uncondionally include libgen.h.
Benjamin Jacobs [Mon, 6 Jun 2016 18:18:25 +0000 (11:18 -0700)]
ecore_audio: uncondionally include libgen.h.

Basically everyone should have it.  If not, maybe we should consider
to test the value of _POSIX_C_SOURCE before testing platform specific
defines, or adding a feature check.

Fixes the following warning on DragonFlyBSD:

lib/ecore_audio/ecore_audio_obj_out_pulse.c:282:60: warning: implicit declaration of function 'basename' [-Wimplicit-function-declaration]
        class_vars.context = pa_context_new(class_vars.api, basename(argv[0]));
                                                            ^
lib/ecore_audio/ecore_audio_obj_out_pulse.c:282:60: warning: passing argument 2 of 'pa_context_new' makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/local/include/pulse/pulseaudio.h:29:0,
                 from lib/ecore_audio/ecore_audio_private.h:17,
                 from lib/ecore_audio/ecore_audio_obj_out_pulse.c:18:
/usr/local/include/pulse/context.h:172:13: note: expected 'const char *' but argument is of type 'int'
 pa_context *pa_context_new(pa_mainloop_api *mainloop, const char *name);
             ^

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_time.c: do not mess with the representation of clockid_t.
Benjamin Jacobs [Mon, 6 Jun 2016 18:16:44 +0000 (11:16 -0700)]
ecore_time.c: do not mess with the representation of clockid_t.

Clockid_t should be used as an opaque type. Some platform might want
to (and even do, e.g. DragonFlyBSD) declare clockid_t as an unsigned.

On such platform, testing the sign of clockid_t is never false, and
assigning it a negative value is an UB, which makes this code unlikely to
work as intended. Fixes black window on dragonfly!

Thanks to gcc for spotting this.

  CC       lib/ecore/lib_ecore_libecore_la-ecore_time.lo
  In file included from ../src/lib/eina/Eina.h:215:0,
                   from lib/ecore/Ecore.h:304,
                   from lib/ecore/ecore_time.c:18:
                   lib/ecore/ecore_time.c: In function 'ecore_time_get':

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_signal.c: factoring out the platform test to improve readability.
Benjamin Jacobs [Mon, 6 Jun 2016 18:14:55 +0000 (11:14 -0700)]
ecore_signal.c: factoring out the platform test to improve readability.

Turns out there is no PRI?SIGATOMIC in the C99 standard. Work around
that by deducing the effective integer type by comparing the
SIG_ATOMIC_MAX with integers *MAX.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelput: Fix crash whem sd_session_get_seat fails
Chris Michael [Mon, 6 Jun 2016 18:53:35 +0000 (14:53 -0400)]
elput: Fix crash whem sd_session_get_seat fails

If systemd fails to give us a valid session id, then any further calls
to get a seat from that session are going to fail. As such, check for
a valid seat return from systemd before calling any systemd functions
which require session id.

Fixes T3785

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
8 years agoeio: remove eio_model that should already be part of Eio.h.
Cedric BAIL [Mon, 6 Jun 2016 18:00:54 +0000 (11:00 -0700)]
eio: remove eio_model that should already be part of Eio.h.

8 years agoedje_edit: fix map API (light, perspective, rotation)
Vitalii Vorobiov [Mon, 6 Jun 2016 17:46:14 +0000 (20:46 +0300)]
edje_edit: fix map API (light, perspective, rotation)

it should be possible to set light or perspective to NULL
and return -1 when nothing is set
also ability to send NULL point to store rotation

@fix

8 years agoelementary: fix definition of external symbols
Jean Guyomarc'h [Mon, 6 Jun 2016 17:30:07 +0000 (19:30 +0200)]
elementary: fix definition of external symbols

Introduced by elm_code. Broke the build (link) Mac OS X.

8 years agoeolian: we don't support unnamed structs/enums, so don't check
Daniel Kolesa [Mon, 6 Jun 2016 15:15:14 +0000 (16:15 +0100)]
eolian: we don't support unnamed structs/enums, so don't check

8 years agoeolian: remove the c_type_named_get APIs
Daniel Kolesa [Mon, 6 Jun 2016 14:50:15 +0000 (15:50 +0100)]
eolian: remove the c_type_named_get APIs

These have inconsistent behavior and are generally unnecessary, so I'm
removing them. Use the c_type_get funcs instead.

8 years agoeolian: add a new references system to help replace pointers
Daniel Kolesa [Mon, 6 Jun 2016 14:22:56 +0000 (15:22 +0100)]
eolian: add a new references system to help replace pointers

It's now possible to mark struct fields and function params as "references",
which causes them to become pointers in C (in bindings, they become whatever
is necessary). They're not a part of the type and are much more restricted
than pointers, allowing bindings to be easier. This system will be gradually
utilized and expanded as required.

@feature

8 years agoexamples: eio: remove unused variable
Stefan Schmidt [Mon, 6 Jun 2016 13:18:46 +0000 (15:18 +0200)]
examples: eio: remove unused variable

8 years agoexamples: eio: mark unused parameter as such
Stefan Schmidt [Mon, 6 Jun 2016 13:16:36 +0000 (15:16 +0200)]
examples: eio: mark unused parameter as such

Really shutting up warnings here to see what else the compiler has to say.

8 years agotests: evas: remove unused variable
Stefan Schmidt [Mon, 6 Jun 2016 12:49:33 +0000 (14:49 +0200)]
tests: evas: remove unused variable

We set it but never going to use it afterwards. We already tests the
efl_gfx_buffer_colorspace_get() elsewhere in this tests so we can ignore it
for now until we need it and bring it back together with a user.

8 years agoelementary_code: Fix test failures post-merge
Andy Williams [Mon, 6 Jun 2016 13:14:24 +0000 (14:14 +0100)]
elementary_code: Fix test failures post-merge

Looks like some were legitimate failures that were not being caught
in the previous setup

8 years agoelementary_code: Use correct theme file post-merge
Andy Williams [Sun, 5 Jun 2016 23:01:34 +0000 (00:01 +0100)]
elementary_code: Use correct theme file post-merge

8 years agoMerge elm code, a code editing widget into the efl
Tom Hacohen [Sun, 5 Jun 2016 10:12:13 +0000 (11:12 +0100)]
Merge elm code, a code editing widget into the efl

It was decided to merge this and mark the code as BETA for now.
It's currently being used by EDI and should also be used by enventor and etc.

8 years agobenchmark: remove unused variable
Stefan Schmidt [Mon, 6 Jun 2016 12:17:07 +0000 (14:17 +0200)]
benchmark: remove unused variable

Looks like this was forgotten during some re-factoring of the code.

8 years agobenchmark: mark parameter as unused to ignore compile warning
Stefan Schmidt [Mon, 6 Jun 2016 12:16:28 +0000 (14:16 +0200)]
benchmark: mark parameter as unused to ignore compile warning

8 years agoeolian_cxx: add missing libgen.h include for basename() to fix build on OS X
Stefan Schmidt [Mon, 6 Jun 2016 09:07:51 +0000 (11:07 +0200)]
eolian_cxx: add missing libgen.h include for basename() to fix build on OS X

On Linux this went through and has gone unnoticed. basename() needs libgen.h
though and eolian_cxx was not including it.

8 years agoedje_edit: return lost API *_span_row/col_set declaration
Vyacheslav Reutskiy [Mon, 6 Jun 2016 07:42:14 +0000 (10:42 +0300)]
edje_edit: return lost API *_span_row/col_set declaration

I'm lost this declaration while add API for manager part items by
index and mark as deprecated old funcs

8 years agoeio: Fix leaks in tests
Lauro Moura [Mon, 6 Jun 2016 07:26:02 +0000 (04:26 -0300)]
eio: Fix leaks in tests

8 years agoelm: Add support for Efl.Model in Elm.Fileselector
Vitor Sousa [Mon, 6 Jun 2016 07:16:57 +0000 (04:16 -0300)]
elm: Add support for Efl.Model in Elm.Fileselector

Elm.Interface.Fileselector now supports Efl.Model objects, allowing users
to work with paths from different data models.

Example of model attribution:

ELm_Fileselector *fs = eo_add(EFL_FILESELECTOR_CLASS, NULL);
Efl_Model *model = ...;
elm_interface_fileselector_model_set(fs, model, NULL);

8 years agoeo-cxx: Remove commented headers
Felipe Magno de Almeida [Mon, 6 Jun 2016 07:09:23 +0000 (04:09 -0300)]
eo-cxx: Remove commented headers

8 years agoeolian-cxx: Fix compilation error on clang with const UDT initialization
Felipe Magno de Almeida [Mon, 6 Jun 2016 06:49:16 +0000 (03:49 -0300)]
eolian-cxx: Fix compilation error on clang with const UDT initialization

8 years agoeolian-cxx: fix compilation errors an olders gcc
Larry Jr [Mon, 6 Jun 2016 06:28:33 +0000 (03:28 -0300)]
eolian-cxx: fix compilation errors an olders gcc

8 years agoeio: fix free eina_promises in error_callbacks
Larry Jr [Mon, 6 Jun 2016 06:10:24 +0000 (03:10 -0300)]
eio: fix free eina_promises in error_callbacks

8 years agoeina: eina_promise_all callback cast removed
Larry Jr [Mon, 6 Jun 2016 05:20:44 +0000 (02:20 -0300)]
eina: eina_promise_all callback cast removed

8 years agoeina: Avoid promise early deletion when cancelled.
Lauro Moura [Mon, 6 Jun 2016 05:54:18 +0000 (02:54 -0300)]
eina: Avoid promise early deletion when cancelled.

Cancelling a promise will fulfill it but won't actually free the memory. This
memory is under custody of the owner, who must either call value_set or
error_set to finish it.

8 years agoeolian-cxx: Rewrite to accomodate new features of the C++ binding
Felipe Magno de Almeida [Mon, 6 Jun 2016 05:54:36 +0000 (02:54 -0300)]
eolian-cxx: Rewrite to accomodate new features of the C++ binding

8 years agoeina-cxx: Add placeholder for futures in C++ binding
Felipe Magno de Almeida [Mon, 6 Jun 2016 05:50:36 +0000 (02:50 -0300)]
eina-cxx: Add placeholder for futures in C++ binding

8 years agoeina-cxx: Fix wrongful operator++ for iterator and docs
Felipe Magno de Almeida [Mon, 6 Jun 2016 05:50:13 +0000 (02:50 -0300)]
eina-cxx: Fix wrongful operator++ for iterator and docs

8 years agoeina-cxx: Add c_str() to string_view
Felipe Magno de Almeida [Mon, 6 Jun 2016 05:49:47 +0000 (02:49 -0300)]
eina-cxx: Add c_str() to string_view

8 years agoeina-cxx: Restrict templated constructor
Felipe Magno de Almeida [Mon, 6 Jun 2016 05:49:28 +0000 (02:49 -0300)]
eina-cxx: Restrict templated constructor

8 years agoeina-cxx: Add optional specialization for pointer types
Felipe Magno de Almeida [Mon, 6 Jun 2016 05:49:00 +0000 (02:49 -0300)]
eina-cxx: Add optional specialization for pointer types

8 years agoelm: Fix wrong use of char instead of string and void out parameter
Felipe Magno de Almeida [Mon, 6 Jun 2016 05:47:15 +0000 (02:47 -0300)]
elm: Fix wrong use of char instead of string and void out parameter

8 years agoedje: Fix wrongful uses of char instead of string in Eolian
Felipe Magno de Almeida [Mon, 6 Jun 2016 05:46:39 +0000 (02:46 -0300)]
edje: Fix wrongful uses of char instead of string in Eolian

8 years agoeio: treat Eina_Accessor NULL as success instead of failure in model
Larry Jr [Mon, 6 Jun 2016 01:24:52 +0000 (22:24 -0300)]
eio: treat Eina_Accessor NULL as success instead of failure in model

We treated as errors when Eina_Accessor was NULL, which meant
that we could never get an empty range os children. Treat it
as success and pass an empty Eina_Accessor

8 years agoeio: Add mime_type property in Eio_Model
Larry Jr [Mon, 6 Jun 2016 00:21:43 +0000 (21:21 -0300)]
eio: Add mime_type property in Eio_Model

8 years agoeio: Eio_Model parent_get return parent model
Larry Jr [Sun, 5 Jun 2016 23:52:52 +0000 (20:52 -0300)]
eio: Eio_Model parent_get return parent model

8 years agoeio: Fix Eio_Model promise accessor
Larry Jr [Sun, 5 Jun 2016 23:31:21 +0000 (20:31 -0300)]
eio: Fix Eio_Model promise accessor

8 years agoecore: Fix ecore thread promises
Lauro Moura [Sun, 5 Jun 2016 23:19:41 +0000 (20:19 -0300)]
ecore: Fix ecore thread promises

Make sure we free the promise memory, set MAGIC numbers and avoid
leaking the underlying eina promise

8 years agoeina: Fix promise tests and avoid early deletion
Lauro Moura [Sun, 5 Jun 2016 19:10:52 +0000 (16:10 -0300)]
eina: Fix promise tests and avoid early deletion

- Progress notify refcount fixes, avoiding early deletion
- Avoid leaking memory on tests

8 years agoeina: Fixes on promises benchmark
Lauro Moura [Sat, 4 Jun 2016 16:49:51 +0000 (13:49 -0300)]
eina: Fixes on promises benchmark

- Updated after pointer vs value change
- Updated callbacks after removal of promise argument

8 years agoeo: Fix compilation of benchmark
Lauro Moura [Sat, 4 Jun 2016 16:51:42 +0000 (13:51 -0300)]
eo: Fix compilation of benchmark

- Missing Eo* self in method declarations.
- Gcc complaining about variable-sized object being initialized.