platform/upstream/efl.git
8 years agoEfl: Introduce app-side min size hint
Jean-Philippe Andre [Thu, 9 Jun 2016 07:24:13 +0000 (16:24 +0900)]
Efl: Introduce app-side min size hint

Now called "hint_min", not sure if it's the proper name for it.
At first I wanted to reuse the request size hint instead of
adding a new hint, but doing that would break Terminology
or any app that already used size_hint_request.

One problem with hint_request is that the legacy function
already exists but its support is practically not implemented.

@feature

8 years agoEdje: Fix some compilation warnings
Jean-Philippe Andre [Thu, 9 Jun 2016 06:23:33 +0000 (15:23 +0900)]
Edje: Fix some compilation warnings

8 years agoEfl: Add geometry property (combines position and size)
Jean-Philippe Andre [Thu, 9 Jun 2016 06:05:36 +0000 (15:05 +0900)]
Efl: Add geometry property (combines position and size)

It's a helper function that can also in the future be
used to implement atomic move+resize operations.

8 years agoEfl: rename size hint content_min to restricted_min
Jean-Philippe Andre [Thu, 9 Jun 2016 05:31:37 +0000 (14:31 +0900)]
Efl: rename size hint content_min to restricted_min

Still not sure about which keyword is the best to use here,
but anyway, it's a protected function so users should realize
it's probably not what they want.

8 years agoEfl.Ui.Box: Simplify layout code with combined_min
Jean-Philippe Andre [Wed, 8 Jun 2016 11:40:50 +0000 (20:40 +0900)]
Efl.Ui.Box: Simplify layout code with combined_min

Simplify the code and fix an issue.

8 years agoEfl: Introduce combine_min size hint
Jean-Philippe Andre [Wed, 8 Jun 2016 11:24:59 +0000 (20:24 +0900)]
Efl: Introduce combine_min size hint

It combines the content min size and the requested min size
by taking the MAX value. This will help support request size
without major code changes.

8 years agoedje: cached the vg tree generation and fixed the interpolation betwwen two vg tree.
Subhransu Mohanty [Thu, 9 Jun 2016 04:49:56 +0000 (13:49 +0900)]
edje: cached the vg tree generation and fixed the interpolation betwwen two vg tree.

Reviewers: cedric, jpeg

Subscribers: cedric, jpeg

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

8 years agoedje : fix the typo in svg loader.
Subhransu Mohanty [Thu, 9 Jun 2016 04:26:33 +0000 (13:26 +0900)]
edje : fix the typo in svg loader.

Reviewers: SanghyeonLee, cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

8 years agoedje: unamed part are completely legit as long as no program try to interact with...
Cedric BAIL [Wed, 8 Jun 2016 22:00:30 +0000 (15:00 -0700)]
edje: unamed part are completely legit as long as no program try to interact with them.

8 years agoelmentary: trigger selected event when mouse is up in index.
Sungtaek Hong [Wed, 8 Jun 2016 21:06:33 +0000 (14:06 -0700)]
elmentary: trigger selected event when mouse is up in index.

Summary:
- selected callback should be called when the user releases a mouse button
  and selects an item.

Reviewers: cedric, jpeg, Hermet, woohyun

Subscribers: conr2d, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas: fix possible memory leaks in e3d_drawable_texture_rendered_pixels_get
Oleksandr Shcherbina [Wed, 8 Jun 2016 20:58:28 +0000 (13:58 -0700)]
evas: fix possible memory leaks in e3d_drawable_texture_rendered_pixels_get

Summary:
@fix
CID: 1356243, 1356242, 1356242, 1356242

Reviewers: cedric, Hermet, raster

Subscribers: jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary: add implementation for elm_multibuttonentry_item_selected_get API
Shilpa Singh [Wed, 8 Jun 2016 20:48:07 +0000 (13:48 -0700)]
elementary: add implementation for elm_multibuttonentry_item_selected_get API

Summary:
Added definition for item_selected_get API
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
@fix

Test Plan: select an item, call item_selected_get API to check status of the item

Reviewers: cedric, CHAN

Reviewed By: CHAN

Subscribers: CHAN, rajeshps, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary: cleanup event handler setup for hoversel.
Cedric BAIL [Wed, 8 Jun 2016 20:47:19 +0000 (13:47 -0700)]
elementary: cleanup event handler setup for hoversel.

8 years agoelementary: rearrange hoversel when its parent is resized
Jee-Yong Um [Wed, 8 Jun 2016 20:24:35 +0000 (13:24 -0700)]
elementary: rearrange hoversel when its parent is resized

Summary:
Hoversel will be rearranged when its parent is resized.
This patch was written by @godlytalias on tizen side.

Reviewers: cedric

Subscribers: jpeg, godlytalias

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje: add new svg part to edc
Subhransu Mohanty [Wed, 8 Jun 2016 18:26:07 +0000 (11:26 -0700)]
edje: add new svg part to edc

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: jpeg, cedric, Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje: little bit of refactoring, more needed.
Cedric BAIL [Wed, 8 Jun 2016 17:47:17 +0000 (10:47 -0700)]
edje: little bit of refactoring, more needed.

8 years agoedje: add svg support to parse and store a svg file as a vector object in .edj.
Subhransu Mohanty [Wed, 8 Jun 2016 17:26:38 +0000 (10:26 -0700)]
edje: add svg support to parse and store a svg file as a vector object in .edj.

Summary:
This is the svg loader which will parse the svg file and store it in a intermediate structure.
It provides the helper function to get EET descriptor to save the structure into eet file.

NOTE: Not all svg attributes are handled yet. but most common attributes are handled .

Reviewers: Hermet, cedric

Subscribers: Hermet, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje_edit: add missed part and description initializations
Vitalii Vorobiov [Wed, 8 Jun 2016 15:47:19 +0000 (18:47 +0300)]
edje_edit: add missed part and description initializations

@fix

8 years agoeolian-cxx: Fix some C++ quirks that makes clang warn about
Felipe Magno de Almeida [Wed, 8 Jun 2016 15:55:19 +0000 (12:55 -0300)]
eolian-cxx: Fix some C++ quirks that makes clang warn about

8 years agoeolian-cxx: Fix generation of some primitive types
Felipe Magno de Almeida [Wed, 8 Jun 2016 15:19:15 +0000 (12:19 -0300)]
eolian-cxx: Fix generation of some primitive types

Fix translation of primitive types for C++ binding

8 years agoeolian: refine the ref system to suit more cases
Daniel Kolesa [Wed, 8 Jun 2016 14:49:09 +0000 (15:49 +0100)]
eolian: refine the ref system to suit more cases

Now references are first class (but still restricted to one level). Unlike
pointers they only mark the type instead of introducing a whole new type.

8 years agoelput: Fix build of tests out of tree
Jean-Philippe Andre [Wed, 8 Jun 2016 10:24:34 +0000 (19:24 +0900)]
elput: Fix build of tests out of tree

8 years agoelm video: implement player interface
Yeshwanth Reddivari [Wed, 8 Jun 2016 09:16:11 +0000 (14:46 +0530)]
elm video: implement player interface

Reviewers: raster, cedric, jpeg, singh.amitesh

Reviewed By: singh.amitesh

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

8 years agoEfl: Add screen_ prefix to all Efl.Screen apis
Jean-Philippe Andre [Wed, 8 Jun 2016 08:25:06 +0000 (17:25 +0900)]
Efl: Add screen_ prefix to all Efl.Screen apis

This will resolve conflicts between Gfx.size and Screen.size.

8 years agoEfl: Add hint_ prefix to all size hints
Jean-Philippe Andre [Wed, 8 Jun 2016 08:19:17 +0000 (17:19 +0900)]
Efl: Add hint_ prefix to all size hints

This covers:
- base
- step
- aspect

The prefix hint_ is useful for bindings, and does not change
the generated C API.

8 years agoEfl: Move evas size hints to Efl.Gfx.Size.Hint
Jean-Philippe Andre [Wed, 8 Jun 2016 07:09:38 +0000 (16:09 +0900)]
Efl: Move evas size hints to Efl.Gfx.Size.Hint

This includes:
- align
- min (now content_min)
- request
- max
- padding (now margin)
- weight

This does NOT include:
- display mode (compress, expand... a hint used by naviframe only).

8 years agowin: Implement aspect control with Efl.Gfx.Size.Hint
Jean-Philippe Andre [Wed, 8 Jun 2016 06:24:08 +0000 (15:24 +0900)]
win: Implement aspect control with Efl.Gfx.Size.Hint

This changes the API from a double to int, int.
Still not sure which API variant is the best (int,int or double).

8 years agowin: Remove inexisting EAPI definitions from legacy
Jean-Philippe Andre [Wed, 8 Jun 2016 06:25:12 +0000 (15:25 +0900)]
win: Remove inexisting EAPI definitions from legacy

8 years agoEvas: Move aspect ratio to Efl.Gfx.Size.Hint
Jean-Philippe Andre [Wed, 8 Jun 2016 05:56:51 +0000 (14:56 +0900)]
Evas: Move aspect ratio to Efl.Gfx.Size.Hint

Problem:
- edje aspect ratio is defined by 1 enum and 2 double (min, max)
- window aspect ratio is defined by only 1 double
- evas object aspect ratio is defined by 1 enum and 2 ints (w, h)

Which one is the best interface? Are min/max a better option?

Also, not sure how to call the enum...

8 years agowin: Forward render_post events from evas to window
Jean-Philippe Andre [Wed, 8 Jun 2016 04:55:21 +0000 (13:55 +0900)]
win: Forward render_post events from evas to window

To do: optimize event forward when no one is listening.

8 years agoEvas: EO-ify Evas_Event_Render_Post
Jean-Philippe Andre [Wed, 8 Jun 2016 04:45:38 +0000 (13:45 +0900)]
Evas: EO-ify Evas_Event_Render_Post

As Efl.Gfx.Event.Render_Post.
To be implemented by Efl.Ui.Window

8 years agoefl_ui_win: Disable legacy for name and type set
Ji-Youn Park [Wed, 8 Jun 2016 00:31:00 +0000 (09:01 +0830)]
efl_ui_win: Disable legacy for name and type set

Those are only valid during eo_add, before finalize.
Both of these are constructors.
Add again jp's code.

8 years agoefl_ui_win: Add back title_set as text.set
Ji-Youn Park [Wed, 8 Jun 2016 00:26:39 +0000 (08:56 +0830)]
efl_ui_win: Add back title_set as text.set

add jp's code again.

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