platform/upstream/efl.git
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

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

7 years agoelm_dbus_menu: add null checking after memory allocation
Jaeun Choi [Wed, 9 Aug 2017 07:01:45 +0000 (16:01 +0900)]
elm_dbus_menu: add null checking after memory allocation

7 years agoelm_color_class: add null checking after memory allocation
Jaeun Choi [Wed, 9 Aug 2017 07:00:49 +0000 (16:00 +0900)]
elm_color_class: add null checking after memory allocation

7 years agoelm: Add missing undef EAPI to Elementary.h
Jean-Philippe Andre [Wed, 9 Aug 2017 04:24:48 +0000 (13:24 +0900)]
elm: Add missing undef EAPI to Elementary.h

This may solve issues on Windows where EAPI can be either dllimport or
dllexport. Anyway keeping EAPI defined is invalid and inconsistent.

Also, change an invalid EO_BETA_API define tag to EFL_BETA_API_SUPPORT
and EFL_EO_API_SUPPORT.

Thanks @vtorri for the report!

@fix

7 years agowidget: Remove scrollable_children from EO
Jean-Philippe Andre [Tue, 8 Aug 2017 13:53:58 +0000 (22:53 +0900)]
widget: Remove scrollable_children from EO

It's an internal only function, which IMHO was not required and an
overhead over the simple loop.

Ref T5363

7 years agowidget: Clean up doc about disabled
Jean-Philippe Andre [Tue, 8 Aug 2017 13:10:58 +0000 (22:10 +0900)]
widget: Clean up doc about disabled

Ref T5363

7 years agowidget: Remove sub_obj arg to resize_object_set
Jean-Philippe Andre [Tue, 8 Aug 2017 12:06:43 +0000 (21:06 +0900)]
widget: Remove sub_obj arg to resize_object_set

This removes an argument that was false only for a single widget:
naviframe. Hopefully this logic is now simpler, even though it involves
a small hack within naviframe itself.

Ref T5363

7 years agonaviframe: Override resize_object_set
Jean-Philippe Andre [Tue, 8 Aug 2017 11:37:41 +0000 (20:37 +0900)]
naviframe: Override resize_object_set

This is a first step into allowing me to removing the sub_obj argument.
Make elm_widget resize_object a protected property.

See also D265

Ref T5363

7 years agoeo: Add a space in documentation
Jean-Philippe Andre [Tue, 8 Aug 2017 09:14:07 +0000 (18:14 +0900)]
eo: Add a space in documentation

This separates the brief and the content.

7 years agowidget: Move signal functions to internal only
Jean-Philippe Andre [Tue, 8 Aug 2017 08:53:55 +0000 (17:53 +0900)]
widget: Move signal functions to internal only

elm_widget APIs are internal only, even if they may be EAPI. The EAPI
here is for modules.

I believe this API is only required for layout objects, so simply should
remain in the layout class. Then you can do efl_isa() and call the
functions or accept error messages if you want to be more careless.

Ref T5363

7 years agoexamples: Correct the comments for key handling
Bryce Harrington [Tue, 8 Aug 2017 06:54:06 +0000 (15:54 +0900)]
examples: Correct the comments for key handling

Subscribers: cedric, jpeg

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

7 years agoexamples: Fix sp. exemple_data
Bryce Harrington [Tue, 8 Aug 2017 06:53:59 +0000 (15:53 +0900)]
examples: Fix sp. exemple_data

Subscribers: cedric, jpeg

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

7 years agoecore_fb_li: add error handling code related with calloc
Jiyoun Park [Wed, 9 Aug 2017 02:10:20 +0000 (11:10 +0900)]
ecore_fb_li: add error handling code related with calloc

7 years agoelementary cursor: remove a warning message from Wayland supports
Youngbok Shin [Tue, 8 Aug 2017 14:17:50 +0000 (10:17 -0400)]
elementary cursor: remove a warning message from Wayland supports

Summary:
"_cursors_count" static variable is not used when Elementary is built
for Wayland. It should be removed if els_cursor doesn't use it.
@fix

Test Plan: N/A

Reviewers: raster, zmike, ManMower

Tags: #efl

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

7 years agoecore_audio_pulse_ml: Check memory allocation fail
Jaehyun Cho [Tue, 8 Aug 2017 13:05:43 +0000 (22:05 +0900)]
ecore_audio_pulse_ml: Check memory allocation fail

7 years agoecore-evas-wayland: Add handler for Iconify State Change event
Chris Michael [Tue, 8 Aug 2017 14:00:11 +0000 (10:00 -0400)]
ecore-evas-wayland: Add handler for Iconify State Change event

Small patch to add a handler for catching Window Iconify State Change
events

'#divergence'

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-wl2: Add support for Window Iconify State Change
Chris Michael [Tue, 8 Aug 2017 13:53:52 +0000 (09:53 -0400)]
ecore-wl2: Add support for Window Iconify State Change

This patch adds support for the Window Iconify State Change event
structure and the ecore event type to support it.

'#divergence'

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agotest_gesture_layer3: fix typo
Jaeun Choi [Tue, 8 Aug 2017 07:44:23 +0000 (16:44 +0900)]
test_gesture_layer3: fix typo

7 years agotest_gesture_layer: fix typo
Jaeun Choi [Tue, 8 Aug 2017 06:40:29 +0000 (15:40 +0900)]
test_gesture_layer: fix typo

7 years agoelm_panel: use widget data for getting geometry
Jaeun Choi [Tue, 23 May 2017 04:11:59 +0000 (13:11 +0900)]
elm_panel: use widget data for getting geometry

_elm_panel_efl_gfx_size_set() ends up calling
_elm_panel_elm_layout_sizing_eval() to adjust the layout
according to the updated width and height.
however, evas_object_geometr_get() doesn't return the updated values.
in fact, it is not necessary to call any API since the values are
stored as widget data in _elm_widget_efl_gfx_size_set().

7 years agoexamples: Fix grammar - 'forcely' is not a word
Bryce Harrington [Tue, 8 Aug 2017 06:28:20 +0000 (15:28 +0900)]
examples: Fix grammar - 'forcely' is not a word

Subscribers: cedric, jpeg

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

7 years agoelm: Continue elm_layout renaming
Jean-Philippe Andre [Tue, 8 Aug 2017 04:28:50 +0000 (13:28 +0900)]
elm: Continue elm_layout renaming

This renames a few macros.

Ref T5315

7 years agoelm: Rename elm_layout to Efl.Ui.Layout
Jean-Philippe Andre [Tue, 8 Aug 2017 02:48:31 +0000 (11:48 +0900)]
elm: Rename elm_layout to Efl.Ui.Layout

Some names have not been changed, hopefully making a distinction
between legacy APIs and internal code (elm_layout_blah) and valid EO
usages.

This means many internal functions are still elm_layout_ as their
sole purpose is to support the legacy API.

Ref T5315

7 years agoEvas Jpeg2000 loader: port it to openjpeg 2.*
Vincent Torri [Tue, 8 Aug 2017 02:32:47 +0000 (11:32 +0900)]
Evas Jpeg2000 loader: port it to openjpeg 2.*

Test Plan: files in https://github.com/uclouvain/openjpeg-data/tree/master/baseline/nonregression

Reviewers: jpeg, raster, cedric

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

7 years agoeo: Fix memory leak with overrides
Jean-Philippe Andre [Tue, 8 Aug 2017 02:01:25 +0000 (11:01 +0900)]
eo: Fix memory leak with overrides

See 0834511067a99faafc2c59f0aabcd58dab1cbc0b
And b7840d9177b32f480087bd7f062cc66ab2583485

Ref T5580

7 years agolayout: Implement missing edje APIs
Jean-Philippe Andre [Mon, 7 Aug 2017 10:11:31 +0000 (19:11 +0900)]
layout: Implement missing edje APIs

This makes elm_layout implement:
 - efl_canvas_layout_signal_message_send
 - efl_canvas_layout_signal_process

This only transfers the calls from the elm widget to the internal
edje object.

PS: message_send is quite ugly in C...

Ref T5315

@feature

7 years agoelm: Move elm_layout_sizing_eval to legacy
Jean-Philippe Andre [Mon, 7 Aug 2017 07:13:38 +0000 (16:13 +0900)]
elm: Move elm_layout_sizing_eval to legacy

elm_layout_sizing_eval() marks an object as requiring recalc.

Unfortunately, it's been massively abused by various widgets into
actually doing the calc, or the min calc. So we end up with one API
that has 3 different definitions depending on the widget type:
1. Mark as requiring recalc (correct, respects doc, elm_layout)
2. Calculate min size and other size hints
3. Actually do some geometry modification

I believe we need to clarify these 3 requirements into 3 very clear
and specific APIs in elementary. Right now we have similar functions
in evas for 1 (evas_object_smart_changed) and 3 (smart_calculate).
But their exact definition also isn't necessarily what we want for
elementary.

Another clear problem is that layout_eval does not do any calculation
(in theory), so the "eval" word is a bit of a stretch here.

Once we're sure about the exact API we want, we can add this back to
EO and make it work across our EO widgets. For now let's just keep
the legacy API, and its EO overrides, as is.

Ref T5315

7 years agoeo: temporary prevent segfault.
Cedric BAIL [Mon, 7 Aug 2017 17:32:19 +0000 (10:32 -0700)]
eo: temporary prevent segfault.

In some case, detected during eo test suite, the vtable does fail to
be fully assigned, but it is still being assigned as the new vtable.
Of course when later destroying it, it has already been freed. Leading
to a double free.

7 years agoelm_win: set shadow geometry based on borderless state
Mike Blumenkrantz [Mon, 7 Aug 2017 17:26:41 +0000 (13:26 -0400)]
elm_win: set shadow geometry based on borderless state

@fix

7 years agoelm_win: simplify/fix recalc logic when changing csd
Mike Blumenkrantz [Mon, 7 Aug 2017 17:26:41 +0000 (13:26 -0400)]
elm_win: simplify/fix recalc logic when changing csd

forcing a full eval here is unnecessary and broken since such an eval could
either change geometry in unexpected ways or fail to accurately change
the underlying canvas geometry

@fix

7 years agoecore-evas wayland: remove move() function
Mike Blumenkrantz [Mon, 7 Aug 2017 17:26:41 +0000 (13:26 -0400)]
ecore-evas wayland: remove move() function

this is conceptually wrong to include in a wayland engine

7 years agoCanvas text: fix re-add of existing style to list
Daniel Hirt [Mon, 7 Aug 2017 08:52:55 +0000 (11:52 +0300)]
Canvas text: fix re-add of existing style to list

Styles were appended regardless their key already existing.
Now it's fixed.
Also, improved readability of 'style_set'.

7 years agoecore-evas wayland: clamp max size hints to 0
Mike Blumenkrantz [Mon, 7 Aug 2017 15:05:58 +0000 (11:05 -0400)]
ecore-evas wayland: clamp max size hints to 0

7 years agoevas wayland: always create gl context when non-existent
Mike Blumenkrantz [Mon, 7 Aug 2017 14:48:39 +0000 (10:48 -0400)]
evas wayland: always create gl context when non-existent

7 years agoevas image: add checks for ENDT existence during image free
Mike Blumenkrantz [Mon, 7 Aug 2017 14:40:17 +0000 (10:40 -0400)]
evas image: add checks for ENDT existence during image free

this is null e.g., during enlightenment restart and causes crashes, probably
should be removed after underlying cause is resolved

@jpeg

7 years agoevas_object_image: formatting
Mike Blumenkrantz [Mon, 7 Aug 2017 14:34:33 +0000 (10:34 -0400)]
evas_object_image: formatting

this was unreadable at parts due to mixed tabs/spaces

7 years agoevas wayland: call makecurrent before querying gl attrs
Mike Blumenkrantz [Mon, 7 Aug 2017 14:02:07 +0000 (10:02 -0400)]
evas wayland: call makecurrent before querying gl attrs

fix T5845

7 years agoAllow to override build date
Bernhard M. Wiedemann [Mon, 7 Aug 2017 12:41:29 +0000 (14:41 +0200)]
Allow to override build date

Summary:
Allow to override build date
for distribution packages that use autoreconf
to recreate the configure script

See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.

Note: This patch will work with GNU date. If BSD date support is
important, a more complex patch needs to be done.

http://rb.zq1.de/compare.factory-20170713/efl-compare.out
also shows other diffs in .edj files that still remain

@fix

T5495

Reviewers: cedric

Subscribers: stefan_schmidt, jayji, netstar, jpeg

Maniphest Tasks: T5495

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

7 years agoedje: make the generated default program name reproducible over builds
Stefan Schmidt [Tue, 16 May 2017 15:58:36 +0000 (17:58 +0200)]
edje: make the generated default program name reproducible over builds

For programs without specific names edje_cc generated default names in
the form of program_$MEMORY_ADDRESS. That worked well enough for keeping
the names unique, but it causes problems if one wants to have these files
being binary reproducible due to different memory layouts, compilers,
etc. Simply using a counter as unique part should work well enough for
our use case and help people who want to verify builds.

Thanks a lot to Bernhard M. Wiedemann for review and testing.

Fixes T5113
Ref T5495

7 years agoexamples: fix build break after efl_ui_panes change
Stefan Schmidt [Mon, 7 Aug 2017 10:37:19 +0000 (12:37 +0200)]
examples: fix build break after efl_ui_panes change

In commit 40945d985967e58d6e6c00ecfd6292a8d67b83b5 it was renamed but
the examples not updated.

7 years agoefl_ui_focus_manager: free iterator when done
Marcel Hollerbach [Mon, 7 Aug 2017 10:30:08 +0000 (12:30 +0200)]
efl_ui_focus_manager: free iterator when done

7 years agoefl_ui_focus_manager: fix leak when setting order
Marcel Hollerbach [Mon, 7 Aug 2017 10:29:38 +0000 (12:29 +0200)]
efl_ui_focus_manager: fix leak when setting order

We should free the list when we set it again.

7 years agoRevert "efl: terrible kludge so avoid termination crash on osx"
Stefan Schmidt [Mon, 7 Aug 2017 09:53:00 +0000 (11:53 +0200)]
Revert "efl: terrible kludge so avoid termination crash on osx"

This reverts commit 9368eedd353a88dd31ba50c71433f81a2978adb5.

The release is out so we can revert this bandaid again. In the hope to
find the real culprit and solution before the next release.

7 years agoelm: rename elm panes to Efl.Ui.Panes
Amitesh Singh [Wed, 2 Aug 2017 01:32:30 +0000 (10:32 +0900)]
elm: rename elm panes to Efl.Ui.Panes

7 years agoecore evas wayland - add explicit falltrhough tags for warning removal
Carsten Haitzler (Rasterman) [Sun, 6 Aug 2017 02:50:49 +0000 (11:50 +0900)]
ecore evas wayland - add explicit falltrhough tags for warning removal

7 years agoedje - add embryo echo command for debugging
Carsten Haitzler (Rasterman) [Sat, 5 Aug 2017 05:47:25 +0000 (14:47 +0900)]
edje - add embryo echo command for debugging

finally add one...

@feature

7 years agoedje crash with run program references - fix
Carsten Haitzler (Rasterman) [Sat, 5 Aug 2017 04:10:33 +0000 (13:10 +0900)]
edje crash with run program references - fix

i found a crash today where a heme could cause a crash if it just did
the right things. the run program was freed while still being
accessed. so add some ref counting to keep it alive until references
go to 0. and add soem refs while we store it in lists.

@fix

7 years agoefl-wl: no-op the re-setting of minmax/aspect handling
Mike Blumenkrantz [Fri, 4 Aug 2017 20:17:53 +0000 (16:17 -0400)]
efl-wl: no-op the re-setting of minmax/aspect handling

7 years agoefl-wl: add handling for external protocol interfaces
Mike Blumenkrantz [Fri, 4 Aug 2017 20:17:53 +0000 (16:17 -0400)]
efl-wl: add handling for external protocol interfaces

@feature

7 years agoecore-evas-wayland: rework window hint calcs to be more accurate
Mike Blumenkrantz [Fri, 4 Aug 2017 20:17:53 +0000 (16:17 -0400)]
ecore-evas-wayland: rework window hint calcs to be more accurate

this is still pretty broken for some directions, client-side aspect fml

7 years agoefl-wl: set minmax for test app
Mike Blumenkrantz [Fri, 4 Aug 2017 20:17:53 +0000 (16:17 -0400)]
efl-wl: set minmax for test app

7 years agoefl-wl: support min/max hinting
Mike Blumenkrantz [Fri, 4 Aug 2017 20:17:53 +0000 (16:17 -0400)]
efl-wl: support min/max hinting

@feature

7 years agoefl-wl: watch/update aspect hints in test
Mike Blumenkrantz [Fri, 4 Aug 2017 20:17:53 +0000 (16:17 -0400)]
efl-wl: watch/update aspect hints in test

7 years agoelm_test: set window aspect hint for icon transparent test
Mike Blumenkrantz [Fri, 4 Aug 2017 20:17:53 +0000 (16:17 -0400)]
elm_test: set window aspect hint for icon transparent test

7 years agoelm_win: propagate window aspect hint in wayland
Mike Blumenkrantz [Fri, 4 Aug 2017 20:17:53 +0000 (16:17 -0400)]
elm_win: propagate window aspect hint in wayland

7 years agowayland: add efl-hints protocol for setting aspect on surfaces
Mike Blumenkrantz [Fri, 4 Aug 2017 20:17:53 +0000 (16:17 -0400)]
wayland: add efl-hints protocol for setting aspect on surfaces

@feature

7 years agotheme: clip start gadget arrow to intended clipper
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
theme: clip start gadget arrow to intended clipper

make activate visual state function as intended

@fix

7 years agoefl-wl: set cursor surface roles
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
efl-wl: set cursor surface roles

ensure cursor surfaces without buffers will be mapped if a buffer is
attached

@fix

7 years agoefl-wl: add handling for commit during canvas render
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
efl-wl: add handling for commit during canvas render

prevent release of pre-existing buffers during a render cycle

@fix

7 years agoecore-evas-wayland: update size when size hints are changed
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
ecore-evas-wayland: update size when size hints are changed

ensure hinted size is used

@fix

7 years agoefl-wl: do shm pool ref/unref for bm safety
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
efl-wl: do shm pool ref/unref for bm safety

@fix

7 years agowayland: fix min/max size setting
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
wayland: fix min/max size setting

also don't set arbitrary hints on init

@fix

7 years agoefl-wl: block connection attempts from unmanaged clients
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
efl-wl: block connection attempts from unmanaged clients

I guess posting an oom error is security

@fix

7 years agoecore-wl2: sync aux hints after window creation
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
ecore-wl2: sync aux hints after window creation

ensure hints are available when needed

@fix

7 years agoecore-wl2: don't send null set_parent requests for every window
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
ecore-wl2: don't send null set_parent requests for every window

this is redundant

@fix

7 years agoecore-wl2: make _ecore_wl2_display_sync_get() local instead of static
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
ecore-wl2: make _ecore_wl2_display_sync_get() local instead of static

7 years agoecore-wl2: simplify server pid detection
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
ecore-wl2: simplify server pid detection

7 years agoecore-wl2: pass display to aux hint event_adds
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
ecore-wl2: pass display to aux hint event_adds

fixes display refcounting

ref 6bb56b3f5651fab85b1a0a1a1a8040f4e488c799

@fix

7 years agoelm_test: reset win stack static vars when window is closed
Mike Blumenkrantz [Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)]
elm_test: reset win stack static vars when window is closed

7 years agoecore_drm2: Fix linker problems
Derek Foreman [Fri, 4 Aug 2017 17:13:40 +0000 (12:13 -0500)]
ecore_drm2: Fix linker problems

Accidentally used functions in the library directly instead of through
the sym_* dlsym looked-up variants.

Why this only caused problems in some installations may still be worth
investigating - we may be pulling in libdrm at link time from some
other library?

7 years agoefl_wl: fix typo in file name to make sure xml file lands in dist
Stefan Schmidt [Fri, 4 Aug 2017 08:28:52 +0000 (10:28 +0200)]
efl_wl: fix typo in file name to make sure xml file lands in dist

In commit 6bb56b3f5651fab85b1a0a1a1a8040f4e488c799 a new xml wayland
protocol file was added. Due to a typo in its name in EXTRA_DIST it
never made it into the tarball breaking the wayland build.

7 years agoedje: implement edje.player interface functions
Amitesh Singh [Fri, 28 Jul 2017 02:48:34 +0000 (11:48 +0900)]
edje: implement edje.player interface functions

fixes T5560

7 years agolayout: fix "elm,state,text,hidden" signal never be emitted
JinYong Park [Fri, 4 Aug 2017 06:33:27 +0000 (15:33 +0900)]
layout: fix "elm,state,text,hidden" signal never be emitted

Summary:
 In _elm_layout_text_set function, text_signal_emit is called.
 But in that case, check text whether it is null or not null before call signal_emit.
 So "text" is not null always, and text_signal_emit's parameter "visible" is also always EINA_TRUE.

Reviewers: Jaehyun_Cho, cedric, jpeg

Reviewed By: Jaehyun_Cho

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

7 years agolayout: Fix compilation break
Jean-Philippe Andre [Fri, 4 Aug 2017 03:31:14 +0000 (12:31 +0900)]
layout: Fix compilation break

Oooops! This broke external apps!

7 years agolayout: Implement data_get from edje
Jean-Philippe Andre [Thu, 3 Aug 2017 09:22:29 +0000 (18:22 +0900)]
layout: Implement data_get from edje

This also implements size_min and size_max get.

Ref T5315

7 years agoedje: Move size_min/max and data to an interface
Jean-Philippe Andre [Thu, 3 Aug 2017 08:50:01 +0000 (17:50 +0900)]
edje: Move size_min/max and data to an interface

The new interface is:
  Efl.Canvas.Layout_Group

I'm not fan of the name.

Ref T5315

7 years agoelm: Remove custom layout signal APIs
Jean-Philippe Andre [Thu, 3 Aug 2017 08:24:50 +0000 (17:24 +0900)]
elm: Remove custom layout signal APIs

This merges them with the now standard interface:
  Efl.Canvas.Layout_Signal

Some wrapping work was required for legacy API which
takes no user_data in del() but instead returns it. The
new EO function, while harder to use, is more correct
(you can't delete the invalid callback by accident, and
this follows EO events design).

Another crazy wrapping was done in entry/text in order
to add the callbacks to 2 objects instead of just one,
and still return the user data.

As for Naviframe and Popup, those two widgets override
signal_emit to forward the call to another object than
the resize object, but not callback_add/del. So they
are definitely broken.

Ref T5315

7 years agoedje: Move signal APIs to an interface
Jean-Philippe Andre [Thu, 3 Aug 2017 08:23:21 +0000 (17:23 +0900)]
edje: Move signal APIs to an interface

This interface will be used by elm_layout as well.

Ref T5315

7 years agolayout: Use only legacy "elm_layout_sizing_eval"
Jean-Philippe Andre [Thu, 3 Aug 2017 06:20:58 +0000 (15:20 +0900)]
layout: Use only legacy "elm_layout_sizing_eval"

This removes all uses of elm_obj_layout_sizing_eval.

Ref T5315

7 years agolayout: Improve doc for theme_set
Jean-Philippe Andre [Thu, 3 Aug 2017 02:28:29 +0000 (11:28 +0900)]
layout: Improve doc for theme_set

Ref T5315

7 years agolayout: Move Part_Alias struct to legacy
Jean-Philippe Andre [Thu, 3 Aug 2017 02:19:52 +0000 (11:19 +0900)]
layout: Move Part_Alias struct to legacy

Part aliases need to be handled differently in EO.

Ref T5315

7 years agolayout: Move edje_get to legacy only
Jean-Philippe Andre [Thu, 3 Aug 2017 01:29:21 +0000 (10:29 +0900)]
layout: Move edje_get to legacy only

Here's the reasoning:
 1. We will expose as many edje APIs as possible (and meaningful)
    through the elm layout class.
 2. Access to internal objects is usually risky, as it allows apps
    to bypass EFL in some ways, leading to potentially undefined
    behaviours.
 3. If the need arises we can still add a similar API back to EO,
    later.

Back to #1, it seems that the need for edje_get() was mostly to
call manual sizing functions, or the missing message_send(). I will
make sure these are accessible from the layout itself.

Ref T5315

7 years agolayout: Remove sub_object_add_enable
Jean-Philippe Andre [Wed, 2 Aug 2017 12:39:25 +0000 (21:39 +0900)]
layout: Remove sub_object_add_enable

Same as the previous patch. This was an ugly hack. Use another
one instead.

Ref T5315

7 years agolayout: Remove method theme_enable
Jean-Philippe Andre [Wed, 2 Aug 2017 12:15:50 +0000 (21:15 +0900)]
layout: Remove method theme_enable

This was an internal thing, ugly, replaced by another ugly
solution, but maybe less ugly.

Ref T5315

7 years agoscroller: Implement default content part
Jean-Philippe Andre [Wed, 2 Aug 2017 11:55:20 +0000 (20:55 +0900)]
scroller: Implement default content part

This:
  efl_content_set(efl_part(scroller, "default"), obj)
worked fine, but, this:
  efl_content_set(scroller, obj)
didn't work as expected.

Thanks @JackDanielz for the report.

Note: There is a problem still... "default" should not work
      with efl_part. This is quite bad, actually. It should
      probably be "content" instead.

7 years agolayout: Implement freeze and thaw from interface
Jean-Philippe Andre [Wed, 2 Aug 2017 11:46:16 +0000 (20:46 +0900)]
layout: Implement freeze and thaw from interface

This implements part of the interface
  Efl.Canvas.Layout_Calc