platform/upstream/efl.git
7 years agoeio: fix correct stat structure on Windows 32 bits
Vincent Torri [Mon, 14 Aug 2017 13:50:03 +0000 (15:50 +0200)]
eio: fix correct stat structure on Windows 32 bits

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agobuild: don't pass -fPIC on Windows
Vincent Torri [Mon, 14 Aug 2017 05:07:05 +0000 (07:07 +0200)]
build: don't pass -fPIC on Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoecore_evas: win32 module - fix possibly uninitialized variables
Vincent Torri [Sun, 13 Aug 2017 21:21:39 +0000 (23:21 +0200)]
ecore_evas: win32 module - fix possibly uninitialized variables

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoevas: move EAPI undef to the correct place
Vincent Torri [Sun, 13 Aug 2017 19:11:02 +0000 (21:11 +0200)]
evas: move EAPI undef to the correct place

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoevas: undef EAPI properly.
Vincent Torri [Sun, 13 Aug 2017 19:10:33 +0000 (21:10 +0200)]
evas: undef EAPI properly.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoevas GDI engine: improve speed
Vincent Torri [Sun, 13 Aug 2017 19:08:53 +0000 (21:08 +0200)]
evas GDI engine: improve speed

expedite mean value goes from ~125 to ~205

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agowayland: bump wayland protocol version requirement
Derek Foreman [Mon, 14 Aug 2017 16:23:26 +0000 (11:23 -0500)]
wayland: bump wayland protocol version requirement

We need a newer version for recent dmabuf changes.

7 years agoefl: add EFL_VERSION_1_21
Mike Blumenkrantz [Mon, 14 Aug 2017 11:24:48 +0000 (07:24 -0400)]
efl: add EFL_VERSION_1_21

indicate that features from this version can be used

7 years agoEfl.ui.panes: move legacy APIs at bottom of file
Amitesh Singh [Mon, 14 Aug 2017 00:55:38 +0000 (09:55 +0900)]
Efl.ui.panes: move legacy APIs at bottom of file

7 years agoRevert "evas: we should be able to access this data during an object being destroyed."
Cedric Bail [Sat, 12 Aug 2017 17:27:01 +0000 (10:27 -0700)]
Revert "evas: we should be able to access this data during an object being destroyed."

This reverts commit 207cab086f290878cd584e6c61b3cd2696c5fd88.

Better make efl_data_scope_safe_get work during EFL_EVENT_DEL.

7 years agoeo: only return NULL when the object is destructed.
Cedric Bail [Sun, 13 Aug 2017 20:14:31 +0000 (13:14 -0700)]
eo: only return NULL when the object is destructed.

There is a problem with the previous version. The object can still be
alive due to the use of manual_free in evas. So you wouldn't be able
for example to remove a callback from an object that hasn't been
destroyed yet. If that callback is triggered by the destruction
of the object, you would end up with an unexpected and impossible to
prevent effect of access after free on a callback that you had removed.

Not sure if that still solve the original problem that the code was
trying to prevent in Ecore_Evas.

7 years agoecore_evas: define the predefine for wl2 instead of wayland
Marcel Hollerbach [Sat, 12 Aug 2017 13:19:45 +0000 (15:19 +0200)]
ecore_evas: define the predefine for wl2 instead of wayland

7 years agoecore_imf/wayland: Check the return value of memory allocation function
Jihoon Kim [Sat, 12 Aug 2017 01:23:01 +0000 (10:23 +0900)]
ecore_imf/wayland: Check the return value of memory allocation function

7 years agoefl-wl: max size of 0x0 from shell is -1x-1 in efl
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: max size of 0x0 from shell is -1x-1 in efl

7 years agoefl-wl: initialize seat keymap fd to -1
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: initialize seat keymap fd to -1

@fix

7 years agoecore: always set delete_me before removing fd from poll
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
ecore: always set delete_me before removing fd from poll

ensure bad fds don't immediately get re-added to polling

@fix

7 years agoefl-wl: handle case where eglBindWaylandDisplay fails
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: handle case where eglBindWaylandDisplay fails

@fix

7 years agoefl-wl: always dismiss popups on hide
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: always dismiss popups on hide

@fix

7 years agoelm_widget: do not reparent subobjs to top widget for non-elm objects
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
elm_widget: do not reparent subobjs to top widget for non-elm objects

this breaks handling of non-elm objects and makes it impossible to safely manage
object lifetimes

ref D3957
ref 62cf70034de38b17f2025e08f81b5758b3d6d6e3

@fix

7 years agoefl-wl: use correct accessor method for keyboard resource hash
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: use correct accessor method for keyboard resource hash

@fix

7 years agowayland: set min/max size hints to surface before show
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
wayland: set min/max size hints to surface before show

with deferred surface creation the first canvas change of hints may not
be able to trigger protocol methods for size hints, so ensure that hints are
set

7 years agoefl-wl: add functionality for extracting surfaces for external use
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: add functionality for extracting surfaces for external use

@feature

7 years agoefl-wl: add EFL_WL_DEBUG env variable for enabling wayland debug
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: add EFL_WL_DEBUG env variable for enabling wayland debug

@feature

7 years agowayland: remove xdg5 support
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
wayland: remove xdg5 support

this has not been used or tested since last year and there are no major
compositors which lack xdg6 support

7 years agowayland: fix xdg-shell popup windows
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
wayland: fix xdg-shell popup windows

@fix

7 years agoecore_evas_drm: Tick from the animator registration callback
Derek Foreman [Fri, 11 Aug 2017 22:02:23 +0000 (17:02 -0500)]
ecore_evas_drm: Tick from the animator registration callback

If we're not ticking already when a new animator is started then we have
to wait for a vblank to get a tick.  That's not great.

If we can, use the time of the last vblank to generate an immediate tick
to avoid this latency.

7 years agoecore_evas_drm: Let ecore_drm2 track pending page flips
Derek Foreman [Fri, 11 Aug 2017 19:51:30 +0000 (14:51 -0500)]
ecore_evas_drm: Let ecore_drm2 track pending page flips

Since the engines can call the flip functions, we need to protect the
ticker from missing those flips.  Thus, we let ecore_drm2, which obviously
sees all flips, track them.

7 years agoecore_drm2: Add query for pending pageflip
Derek Foreman [Fri, 11 Aug 2017 19:48:41 +0000 (14:48 -0500)]
ecore_drm2: Add query for pending pageflip

We've been tracking this in ecore_evas, but ecore_evas isn't the only
caller, and it doesn't know about flips initiated by the evas engines.

7 years agomakefile_evas: fix includes when openjpeg 1.5 and 2.0 are installed.
Al Poole [Fri, 11 Aug 2017 18:10:10 +0000 (13:10 -0500)]
makefile_evas: fix includes when openjpeg 1.5 and 2.0 are installed.

Reviewers: vtorri

Subscribers: ManMower, cedric, jpeg

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

7 years agoevas: we should be able to access this data during an object being destroyed.
Cedric Bail [Fri, 11 Aug 2017 17:15:14 +0000 (10:15 -0700)]
evas: we should be able to access this data during an object being destroyed.

So, this is maybe not the best fix. The question is should we be able to
get efl_data_scope_safe_get return the object private data, when we are
currently executing the object EFL_EVENT_DEL callbacks. Right now we don't
and this lead to bug where we wouldn't have been able to destroy a callback
and get that callback triggered later on destroyed data (I had a crash in
terminology). I have switched back to the not _safe_ version which doesn't
enforce this, but that might not be the only place that need a fix.

7 years agoevas tests - add Jpeg2000 tests
Vincent Torri [Fri, 11 Aug 2017 08:51:29 +0000 (17:51 +0900)]
evas tests - add Jpeg2000 tests

add tests for loading jp2k files correctly and the images

7 years agoefl_ui_focus_manager_calc: fix the class check of the redirect
Marcel Hollerbach [Fri, 11 Aug 2017 08:31:30 +0000 (10:31 +0200)]
efl_ui_focus_manager_calc: fix the class check of the redirect

this came up with a huge load of errors, i havent noticed them last
night. Sorry.

7 years agoEfl.Ui.Panes: rename min_split_ratio to split_ratio_min
Amitesh Singh [Fri, 11 Aug 2017 05:32:13 +0000 (14:32 +0900)]
Efl.Ui.Panes: rename min_split_ratio to split_ratio_min

7 years agoEfl.Ui.Panes: rename allow_user_size_hints to hint_min_allow
Amitesh Singh [Fri, 11 Aug 2017 05:27:27 +0000 (14:27 +0900)]
Efl.Ui.Panes: rename allow_user_size_hints to hint_min_allow

thanks to raster for suggestion.

7 years agocommon3d: correct converting number to float
Thiep Ha [Fri, 11 Aug 2017 05:17:58 +0000 (14:17 +0900)]
common3d: correct converting number to float

7 years agoelm_scroller: focus_direction should not be called when scroller focusable and no...
Jeonghyun Yun [Fri, 11 Aug 2017 04:55:22 +0000 (13:55 +0900)]
elm_scroller: focus_direction should not be called when scroller focusable and no focusable child

Summary:
when scroller can have focus and scroller's child can't have focus,
there is a problem that scroller is always selected to next focus object.
In this case, it should not enter into _elm_scroller_elm_widget_focus_direction()

Reviewers: woohyun

Subscribers: cedric, jpeg

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

7 years agoCast to double before division during region/coord calculation.
Sungtaek Hong [Fri, 11 Aug 2017 04:50:56 +0000 (13:50 +0900)]
Cast to double before division during region/coord calculation.

Summary:
int var devided by int is cast to double after devision.
This might cause wrong calculation result.

Reviewers: cedric, jpeg, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

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

7 years agowin: Prevent crash inside ecore evas callbacks
Jean-Philippe Andre [Fri, 11 Aug 2017 01:24:54 +0000 (10:24 +0900)]
win: Prevent crash inside ecore evas callbacks

After any complex call on the window, a foreign evas/efl callback may be
triggered that could delete the window object. This leads to crashes in
queued jobs or even immediately after said callback (right now EO
prevents immediate memory free using eina_freeq or eina_trash so the
effects aren't immediate).

Funnily enough, this was a known issue according to some comments, but
no one bothered fixing it...

In this particular instance, a focus_out job was crashing while trying
to access now-invalid sd data.

I believe some uses of ELM_WIN_DATA_GET() may still be slightly unsafe
but most look like they should be the result of an EO call on the object
(eg. a call to efl_event_callback_call), which ensures the object is
alive.

Fixes T5869

7 years agoeo: Check refs in efl_data_scope_safe_get
Jean-Philippe Andre [Fri, 11 Aug 2017 01:58:56 +0000 (10:58 +0900)]
eo: Check refs in efl_data_scope_safe_get

This makes sure the object is actually still alive and kicking before
returning any data. Otherwise the "safe" word is a bit of an abuse...

Ref T5869

@fix

7 years agoEfl.Ui.Panes: don't use edje restrict cal to calculate min size
Amitesh Singh [Fri, 11 Aug 2017 00:20:21 +0000 (09:20 +0900)]
Efl.Ui.Panes: don't use edje restrict cal to calculate min size

7 years agoefl_ui_focus_manager: make focus a property
Marcel Hollerbach [Tue, 18 Jul 2017 10:40:17 +0000 (12:40 +0200)]
efl_ui_focus_manager: make focus a property

7 years agoefl_ui_focus_manager: split this of tinto a class and a interface
Marcel Hollerbach [Wed, 5 Jul 2017 10:48:52 +0000 (12:48 +0200)]
efl_ui_focus_manager: split this of tinto a class and a interface

it turns out to be very handy to have a interface for the moving and
border elements, that is unconnected to the way of how widgets are
registering themself.

This for example enables us to get a simple focus manager that just
redirects the call into a internal 2 dimensional data struct

7 years agoeolian-cxx: Add workaround for clang removing const from parameters
Felipe Magno de Almeida [Thu, 10 Aug 2017 18:52:25 +0000 (15:52 -0300)]
eolian-cxx: Add workaround for clang removing const from parameters

7 years agoefl_wl: Update to latest dmabuf protocol version
Derek Foreman [Thu, 10 Aug 2017 16:36:38 +0000 (11:36 -0500)]
efl_wl: Update to latest dmabuf protocol version

Weston's dmabuf code continues to be modular enough that we can pull
it in with little change.

This updates us to version 3 of the protocol.

Currently only contains stubs for format queries.

7 years agoeolian cxx: fix the remaining type errors
Daniel Kolesa [Thu, 10 Aug 2017 12:10:52 +0000 (14:10 +0200)]
eolian cxx: fix the remaining type errors

7 years agoeolian cxx: fix build after eolian type api change
Daniel Kolesa [Thu, 10 Aug 2017 11:38:38 +0000 (13:38 +0200)]
eolian cxx: fix build after eolian type api change

7 years agoecore, ecore_con: fix const on Eina.Slice
Daniel Kolesa [Thu, 10 Aug 2017 10:53:14 +0000 (12:53 +0200)]
ecore, ecore_con: fix const on Eina.Slice

Fixes TODOs from dd5cdda64b5fd3966718af62d417117942e2f323
after fixing T5024.

7 years agoeolian: fix tests
Daniel Kolesa [Thu, 10 Aug 2017 10:47:56 +0000 (12:47 +0200)]
eolian: fix tests

7 years agoeolian: implement proper return type serialization
Daniel Kolesa [Thu, 10 Aug 2017 10:41:03 +0000 (12:41 +0200)]
eolian: implement proper return type serialization

This accounts for const so that you can't generate functions
that return const values, as that makes no sense.

@fix T5024

7 years agoelua: update eolian bindings with c type serialization change
Daniel Kolesa [Thu, 10 Aug 2017 10:17:10 +0000 (12:17 +0200)]
elua: update eolian bindings with c type serialization change

7 years agoeolian: change C type serialization API to account for returns
Daniel Kolesa [Thu, 10 Aug 2017 10:12:38 +0000 (12:12 +0200)]
eolian: change C type serialization API to account for returns

This will allow proper handling of const.

7 years agoelm test: rename efl.ui.panes test case
Amitesh Singh [Thu, 10 Aug 2017 07:48:46 +0000 (16:48 +0900)]
elm test: rename efl.ui.panes test case

7 years agoEfl.Ui.Image: use internal func to detect legacy usage
Amitesh Singh [Thu, 10 Aug 2017 07:43:30 +0000 (16:43 +0900)]
Efl.Ui.Image: use internal func to detect legacy usage

7 years agoEfl.Ui.Panes: use internal func to detect legacy usage
Amitesh Singh [Thu, 10 Aug 2017 07:29:50 +0000 (16:29 +0900)]
Efl.Ui.Panes: use internal func to detect legacy usage

Ref T5359

7 years agoEfl.Ui.Panes: set dir to EFL_UI_DIR_VERTICAL
Amitesh Singh [Thu, 10 Aug 2017 07:23:50 +0000 (16:23 +0900)]
Efl.Ui.Panes: set dir to EFL_UI_DIR_VERTICAL

7 years agoEfl.Ui.Panes: switch to Efl.Ui.Dir (EO)
Amitesh Singh [Thu, 10 Aug 2017 06:58:34 +0000 (15:58 +0900)]
Efl.Ui.Panes: switch to Efl.Ui.Dir (EO)

Ref T5870

7 years agoEfl.Ui.Panes: rename left/right_size_set to split_ratio
Amitesh Singh [Wed, 9 Aug 2017 11:45:02 +0000 (20:45 +0900)]
Efl.Ui.Panes: rename left/right_size_set to split_ratio

This name makes more sense and one api does the job of two.
We never needed two apis at first place though.
Mark left/right_size_set as legacy apis too.
This patch also implements min_split_ratio on parts.

@feature

refer T5359

7 years agoEfl.Ui.Panes: implement allow_user_size_hints on parts
Amitesh Singh [Wed, 9 Aug 2017 01:49:21 +0000 (10:49 +0900)]
Efl.Ui.Panes: implement allow_user_size_hints on parts

This allows user to set size hints to be respected and
request panes to ignore combined min size.
If this flag is set, the minimum size set by efl_gfx_size_hint_min_set()
is respected forcefully.

@feature

refer T5359

7 years agoEfl.Ui.Panes: allow panes to respect the min size of its content
Amitesh Singh [Tue, 8 Aug 2017 08:22:05 +0000 (17:22 +0900)]
Efl.Ui.Panes: allow panes to respect the min size of its content

refer T5359

7 years agoctxpopup: Remove use of Orientation API (EO)
Jean-Philippe Andre [Thu, 10 Aug 2017 05:55:30 +0000 (14:55 +0900)]
ctxpopup: Remove use of Orientation API (EO)

ctxpopup belongs to legacy, some work is ongoing to provide a cleaner EO
based API for popups, etc... See T5326

Revert "ctxpopup: implement Efl.Orientation interface functions"

This reverts commit 736fb9d4980a7dee83ca0721d8b9b58c6c12a39d.

Ref T5870

7 years agoelm_ctxpopup: Implemented elm_widget_item_part_content_unset for elm_ctxpopup_item
JEONGHYUN YUN [Thu, 10 Aug 2017 05:13:51 +0000 (14:13 +0900)]
elm_ctxpopup: Implemented elm_widget_item_part_content_unset for elm_ctxpopup_item

Summary:
ctxpopup item have elm_list item internally.
item_part_content_unset need to pass on content part to elm_list item.

Test Plan:
1. launch elementary_test - ctxpopup
2. click Ctxpopup with part text & content function
3. press "Icon Set" and press "Icon Unset"

Reviewers: jpeg, woohyun, herb, Blackmole

Subscribers: cedric, jpeg

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

7 years agoelm_ctxpopup: Add APIs to insert before/after item to a ctxpopup object.
JEONGHYUN YUN [Thu, 10 Aug 2017 05:12:08 +0000 (14:12 +0900)]
elm_ctxpopup: Add APIs to insert before/after item to a ctxpopup object.

Summary:
There were only 2 APIs (item_append, item_prepend) for ctxpopup item add.
Added more item add APIs (item_insert_before and item_insert_after) for convenience.

Test Plan:
1. launch elementary_test - ctxpopup
2. click Ctxpopup with callback function sample
3. check whether there are 3 items on ctxpopup

Reviewers: woohyun, Jaehyun, jpeg, cedric

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

7 years agoelm_ctxpopup: Implemented elm_widget_item_del_pre for elm_ctxpopup_item
arosis [Thu, 10 Aug 2017 05:02:06 +0000 (14:02 +0900)]
elm_ctxpopup: Implemented elm_widget_item_del_pre for elm_ctxpopup_item

Summary:
ctxpopup item have elm_list item internally.
But when elm_ctxpopup item was deleted, elm_list item was not deleted.
elm_list item in elm_ctxpopup item should be deleted in del_pre
when elm_ctxpopup item is deleted by elm_wdg_item_del()

Test Plan:
1. launch elementary_test - ctxpopup
2. click Ctxpopup with label only
3. "Never Show" item should not shown in ctxpopup

Reviewers: jpeg, cedric, woohyun

Subscribers: cedric, jpeg

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

7 years agotoolbar: Switch to Efl.Ui.Dir (EO)
Jean-Philippe Andre [Thu, 10 Aug 2017 04:54:05 +0000 (13:54 +0900)]
toolbar: Switch to Efl.Ui.Dir (EO)

Ref T5870

7 years agoseparator: Remove orientation API use (EO)
Jean-Philippe Andre [Thu, 10 Aug 2017 04:38:50 +0000 (13:38 +0900)]
separator: Remove orientation API use (EO)

Revert "Separtor: use orientation APIs"

This reverts commit f043c3be617f7257001b9fc779b64cebf4370781.
Separator is not part of EO API so no need to use Orientation or
Direction API here.

Ref T5870

7 years agoindex: Switch to Efl.Ui.Dir (EO)
Jean-Philippe Andre [Thu, 10 Aug 2017 03:19:34 +0000 (12:19 +0900)]
index: Switch to Efl.Ui.Dir (EO)

Ref T5870

7 years agoslider: Switch to Efl.Ui.Dir (EO)
Jean-Philippe Andre [Wed, 9 Aug 2017 15:01:32 +0000 (00:01 +0900)]
slider: Switch to Efl.Ui.Dir (EO)

Ref T5870

7 years agoprogressbar: Switch to Efl.Ui.Dir (EO)
Jean-Philippe Andre [Wed, 9 Aug 2017 14:47:24 +0000 (23:47 +0900)]
progressbar: Switch to Efl.Ui.Dir (EO)

Ref T5870

7 years agogrid: Switch to Efl.Ui.Dir (EO)
Jean-Philippe Andre [Wed, 9 Aug 2017 14:36:02 +0000 (23:36 +0900)]
grid: Switch to Efl.Ui.Dir (EO)

Ref T5870

7 years agoflip: Switch to Efl.Ui.Dir (EO)
Jean-Philippe Andre [Wed, 9 Aug 2017 14:25:59 +0000 (23:25 +0900)]
flip: Switch to Efl.Ui.Dir (EO)

Ref T5870

7 years agoefl.ui.box: Switch to Efl.Ui.Dir (EO)
Jean-Philippe Andre [Wed, 9 Aug 2017 13:36:29 +0000 (22:36 +0900)]
efl.ui.box: Switch to Efl.Ui.Dir (EO)

This makes the default box vertical, just like in legacy.
The flow box is horizontal by default.

Ref T5870

7 years agoevas: Modify wheel events direction to bool (EO)
Jean-Philippe Andre [Wed, 9 Aug 2017 12:04:10 +0000 (21:04 +0900)]
evas: Modify wheel events direction to bool (EO)

The orientation was overkill here. We only want a bool.

Ref T5870

7 years agoelm_test: Fix some test cases to use legacy
Jean-Philippe Andre [Wed, 9 Aug 2017 12:02:47 +0000 (21:02 +0900)]
elm_test: Fix some test cases to use legacy

Legacy test cases should keep using the legacy API, not the EO API.

Ref T5870

7 years agoefl: Introduce Efl.Ui.Direction interface
Jean-Philippe Andre [Wed, 9 Aug 2017 11:59:30 +0000 (20:59 +0900)]
efl: Introduce Efl.Ui.Direction interface

This introduces, but doesn't make any use of, two types:
 - EO interface Efl.Ui.Direction
 - Enum Efl.Ui.Dir

This is to clean up inconsistencies with Efl.Orient values when used
with widgets.

Ref T5870

@feature

7 years agoEfl.Ui.Panes: add first and second as content aliases
Amitesh Singh [Mon, 7 Aug 2017 08:20:09 +0000 (17:20 +0900)]
Efl.Ui.Panes: add first and second as content aliases

'first' and 'second' are more meaningful than
'left'/'right' & 'up'/'down' names.

refer T5359

7 years agoupdate po files
Carsten Haitzler (Rasterman) [Thu, 10 Aug 2017 04:41:46 +0000 (13:41 +0900)]
update po files

7 years agoevas: Fix crash in E
Jean-Philippe Andre [Thu, 10 Aug 2017 02:48:01 +0000 (11:48 +0900)]
evas: Fix crash in E

Somehow starting VirtualBox would crash E when trying to upload invalid
data. I believe checking for NULL data here is all we need to do in
order to keep the image data consistent and valid.

I have to admit I'm not 100% sure what is happening here.

Fixes T5868

@fix

7 years agoecore_drm2: Remove ecore_drm2_output_resolution_get()
Derek Foreman [Tue, 8 Aug 2017 17:03:51 +0000 (12:03 -0500)]
ecore_drm2: Remove ecore_drm2_output_resolution_get()

No local callers.  Superseded by ecore_drm2_output_info_get()

7 years agoecore_drm2: Remove ecore_drm2_output_crtc_size_get()
Derek Foreman [Tue, 8 Aug 2017 17:03:12 +0000 (12:03 -0500)]
ecore_drm2: Remove ecore_drm2_output_crtc_size_get()

Replaced with ecore_drm2_output_info_get()

7 years agoecore_drm2: Remove ecore_drm2_output_geometry_get()
Derek Foreman [Tue, 8 Aug 2017 17:02:15 +0000 (12:02 -0500)]
ecore_drm2: Remove ecore_drm2_output_geometry_get()

Replaced with ecore_drm2_output_info_get()

7 years agoecore_drm2: Add ecore_drm2_output_info_get
Derek Foreman [Thu, 3 Aug 2017 23:26:18 +0000 (18:26 -0500)]
ecore_drm2: Add ecore_drm2_output_info_get

We've got too many ways to query output information, so let's add more.
(this will soon replace all of them)

7 years agoecore_drm2: Remove useless safety checks
Derek Foreman [Thu, 3 Aug 2017 20:09:06 +0000 (15:09 -0500)]
ecore_drm2: Remove useless safety checks

Now that the device is opened and found in one operation it's impossible
to have fd == -1, so we can stop testing for it.

7 years agoecore_drm2: Merge ecore_drm2_device_free and _close
Derek Foreman [Thu, 3 Aug 2017 20:07:53 +0000 (15:07 -0500)]
ecore_drm2: Merge ecore_drm2_device_free and _close

There's no reason to have them be separate, all callers must do them
back to back, so let's just combine them.

7 years agoecore_drm2: Merge ecore_drm2_device_find and ecore_drm2_device_open
Derek Foreman [Thu, 3 Aug 2017 19:56:19 +0000 (14:56 -0500)]
ecore_drm2: Merge ecore_drm2_device_find and ecore_drm2_device_open

There's never a reason to find a device and not open it, so all callers
end up calling these two functions back to back.

7 years agoecore_drm2: Remove connector bitfield
Derek Foreman [Thu, 3 Aug 2017 18:42:32 +0000 (13:42 -0500)]
ecore_drm2: Remove connector bitfield

This is unreliable - there's no reason to expect these connector ids
will be low enough to sensibly store in a bit field.

7 years agoecore_drm2: remove unused crtc bitfield
Derek Foreman [Tue, 1 Aug 2017 18:38:13 +0000 (13:38 -0500)]
ecore_drm2: remove unused crtc bitfield

We'll need something like this when multi-head works, but it can't
be implemented this way anyway.  There's no guarantee that crtc
ids will be low enough to fit sensibly in a bitfield.

7 years agogl_drm: Remove some stale comments
Derek Foreman [Fri, 21 Jul 2017 20:49:24 +0000 (15:49 -0500)]
gl_drm: Remove some stale comments

We do planes now, so this comment isn't helpful anymore.

7 years agoecore_drm2: Pass Ecore_Drm2_Device instead of fd to most functions
Derek Foreman [Fri, 21 Jul 2017 20:48:40 +0000 (15:48 -0500)]
ecore_drm2: Pass Ecore_Drm2_Device instead of fd to most functions

Intended to simplify the upcoming commit that merges device find and
device open into a single function that returns a device.

The fd is something callers shouldn't really need to get their hands on,
right now there are still a few places where it's needed, but those will
be gone soon too.

7 years agoelc_naviframe: Fix to handle item deletion right after item push
Jaehyun Cho [Wed, 9 Aug 2017 14:32:35 +0000 (23:32 +0900)]
elc_naviframe: Fix to handle item deletion right after item push

If an item is deleted right after the item is newly pushed, the push
transition should not happen for both the new item and the current item.

7 years agoelm: Prevent style/theme set after finalize (EO)
Jean-Philippe Andre [Wed, 9 Aug 2017 07:22:48 +0000 (16:22 +0900)]
elm: Prevent style/theme set after finalize (EO)

This is only for EO obviously. style_set and theme_set should only be
called when the object is being created, not after. On-the-fly style
changes are complex to handle and in most cases it should be easy to
simply repopulate the object after creating a new one with a new style.

There are only a few cases where style_set is used long after creation
of an object, like changing how a label slides, or in the evas 3d map
examples. Menu seems to change the hover style a lot, so rewriting it in
pure EO would need some extra work, maybe.

Ref T5307
Ref T5363

7 years agoelm: Fix modules due to a missing EAPI
Jean-Philippe Andre [Wed, 9 Aug 2017 08:01:37 +0000 (17:01 +0900)]
elm: Fix modules due to a missing EAPI

I recently added an undef EAPI which wasn't in fact the best idea ever.
The EAPI needs to remain defined as is for elementary modules and
edje_externals.

Ping @vtorri

See ad6e3ce3df422751cb1c4524f1ea0b16ce897410

7 years agoelm: Cleanup theme and style set functions
Jean-Philippe Andre [Wed, 9 Aug 2017 07:13:06 +0000 (16:13 +0900)]
elm: Cleanup theme and style set functions

This makes efl_ui_layout_theme_set() return a Theme_Apply error
code. The type is now public as Efl.Ui.Theme.Apply.

Ref T5329
Ref T5363

7 years agolayout: Remove unused import in EO file
Jean-Philippe Andre [Wed, 9 Aug 2017 06:40:44 +0000 (15:40 +0900)]
layout: Remove unused import in EO file

Ref T5363

7 years agoFix recent openjpeg detection for Jpeg2000 on Debian
Vincent Torri [Wed, 9 Aug 2017 07:43:11 +0000 (16:43 +0900)]
Fix recent openjpeg detection for Jpeg2000 on Debian

7 years agoecore glib support - if we are not the main ctx owner loop to acquire
Carsten Haitzler (Rasterman) [Wed, 9 Aug 2017 07:18:10 +0000 (16:18 +0900)]
ecore glib support - if we are not the main ctx owner loop to acquire

the code didn't try acquire every loop if we were not, so it wouldnt
wake up if someone stole context (and then gave it up). found by roy!

@fix

7 years agotest_gesture_layer3: add null checking after memory allocation
Jaeun Choi [Wed, 9 Aug 2017 07:07:51 +0000 (16:07 +0900)]
test_gesture_layer3: add null checking after memory allocation

7 years agotest_gesture_layer2: add null checking after memory allocation
Jaeun Choi [Wed, 9 Aug 2017 07:07:15 +0000 (16:07 +0900)]
test_gesture_layer2: add null checking after memory allocation

7 years agotest_gesture_layer: add null checking after memory allocation
Jaeun Choi [Wed, 9 Aug 2017 07:05:59 +0000 (16:05 +0900)]
test_gesture_layer: add null checking after memory allocation

7 years agoelm_prefs_data: add null checking after memory allocation
Jaeun Choi [Wed, 9 Aug 2017 07:03:31 +0000 (16:03 +0900)]
elm_prefs_data: add null checking after memory allocation

7 years agoelm_gesture_layer_extra_gestures: add null checking after memory allocation
Jaeun Choi [Wed, 9 Aug 2017 07:03:02 +0000 (16:03 +0900)]
elm_gesture_layer_extra_gestures: add null checking after memory allocation