platform/upstream/efl.git
6 years agoelementary: Add missed type for legacy. 23/167823/1
Woochan Lee [Mon, 22 Jan 2018 08:03:57 +0000 (17:03 +0900)]
elementary: Add missed type for legacy.

Summary:
We've been missed type of class name.

Add legacy class name to maintain compatibility.

Reviewers: jpeg, woohyun, Jaehyun_Cho

Subscribers: cedric, jpeg

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

Change-Id: I27cec817c0032fa068904213ae45c4f3fb0d490f

6 years agoRevert "[EXTN_GL] Add gl-backend in ecore_evas_extn"
Wonki Kim [Mon, 22 Jan 2018 06:56:05 +0000 (15:56 +0900)]
Revert "[EXTN_GL] Add gl-backend in ecore_evas_extn"

This reverts commit f755812ca929c0cd71dfa4071f9e8c4f9bdd2ab6.

6 years agoctxpopup: fix build warning 02/167802/4
JinYong Park [Mon, 22 Jan 2018 06:37:38 +0000 (15:37 +0900)]
ctxpopup: fix build warning

@tizen_fix

Change-Id: I2c6f67b25cf07e2a01208683cea7154a54413bae
Signed-off-by: JinYong Park <j4939.park@samsung.com>
6 years agoselection: remove elm_cnp.c 08/167808/2
Thiep Ha [Mon, 22 Jan 2018 07:20:19 +0000 (16:20 +0900)]
selection: remove elm_cnp.c

elm_cnp.c had been removed in upstream, but it is not removed in tizen.
It is a bug in migration.

Change-Id: I63cde8d1efa0b2b68c9366a615ab1c3321f2c12d

6 years agoelementary: replace all HAVE_ELEMENTARY_WAYLAND to HAVE_ELEMENTARY_WL2
Youngbok Shin [Mon, 22 Jan 2018 06:29:35 +0000 (15:29 +0900)]
elementary: replace all HAVE_ELEMENTARY_WAYLAND to HAVE_ELEMENTARY_WL2

The WAYLAND macro was replaced with WL2 from upstream EFL.
The WAYLAND macro was used in Tizen only code. It should be replcaed with WL2, too.

@tizen_fix

6 years agoedje, elementary: fix warning messages from Tizen only code
Youngbok Shin [Mon, 22 Jan 2018 04:49:45 +0000 (13:49 +0900)]
edje, elementary: fix warning messages from Tizen only code

It fixes warning messages from the following widgets of elemenatry.
- elc_ctxpopup
- elc_popup
- elm_atspi_bridge
- elm_conform
- elm_widget

The authors who wrote the Tizen only code must revisit the widgets
to fix additional warning messages.
For next Tizen migration (6.0 or next?),
It must be considered as sepereated patches by seperated authors.

@tizen_fix

6 years agoRevert "elementary: Add missed type for legacy." 65/167765/1
WooHyun Jung [Mon, 22 Jan 2018 01:53:20 +0000 (10:53 +0900)]
Revert "elementary: Add missed type for legacy."

This reverts commit 2e71f63b2e28ff6282454e71f971116a67156aa8.

Change-Id: I0cff4d48d409a95ac68d8f524ca51dee81529e8f

6 years agoupdate Makefile.am of elementary-tizen for the consistency with elementary 52/167752/1
Jongmin Lee [Sun, 21 Jan 2018 23:14:23 +0000 (08:14 +0900)]
update Makefile.am of elementary-tizen for the consistency with elementary

Change-Id: Ib74b1d0ebb003a88b38ca93f24eedbeb49b24782

6 years agointerface_scrollable: Remove redundant code block
Wonki Kim [Mon, 27 Feb 2017 10:27:08 +0000 (19:27 +0900)]
interface_scrollable: Remove redundant code block

wanted-updates logics is paired working with wanted-set logic.
but there are coordinates mirroring logics on the both side.
It is useless to reverse value which is reversed.

@tizen_fix

Change-Id: If3909559def5280677116b2a00036875b54cbbd7
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
6 years agointerface_scrollable: update pan position once pan size is changed
Wonki Kim [Wed, 8 Feb 2017 09:31:06 +0000 (18:31 +0900)]
interface_scrollable: update pan position once pan size is changed

Becase bar is closely related with pan and content,
we have to update bar position and size on some event
such as position or size of pan is changed or size of content is
changed.

However bar related things are not updated,
even if pan changed callback is invoked by pan related changing.

This behavior makes invalid drag value and wrong drag value makes
scroller had a bad position.

@tizen_fix

Change-Id: I7f013fd9a05a7f139548c4e05dd1dfc088af8b4e
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
6 years agointerface_scrollable: Add "content,resize" callback to keep backward compat
Wonki Kim [Tue, 18 Jul 2017 11:15:21 +0000 (20:15 +0900)]
interface_scrollable: Add "content,resize" callback to keep backward compat

There was a "content,resize" callback before tizen 3.0.
Even if it was a tizen only code block, there could be a backward compat issue
without the callback.

This commit emits the callback after whole procedure for content resizing.finished.

@tizen_feature

Change-Id: I0eccf8ebc8c704e1403056c0078bd6625d612265
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
6 years agointerface_scrollable: Fix scroller to keep its page when changing lang
Wonki Kim [Thu, 18 Jan 2018 14:24:48 +0000 (23:24 +0900)]
interface_scrollable: Fix scroller to keep its page when changing lang

When mirrored mode is changed, scroller goes to the logical current page
by reverting the current wanted x position

However, that reverting logic doesn't take place when lang changed from rtl to ltr
This commit modifies mirrored_set api to keep its current page even if lang changed

@tizen_fix

Change-Id: I1fc75c796bac8644d1325b88b293ce09809e3025
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
6 years agointerface_scrollable: Modify logics to make scroller stable on tizen
Wonki Kim [Thu, 17 Nov 2016 06:05:57 +0000 (15:05 +0900)]
interface_scrollable: Modify logics to make scroller stable on tizen

This patch is for a tizen feature that makes scoller stable on tizen

@tizen_feature

Change-Id: I672ecf5f39c61facd1445a174d5061ddece96d16
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
6 years ago[genlist] enable item align feature for wearable profile
Hosang Kim [Mon, 25 Apr 2016 09:34:02 +0000 (18:34 +0900)]
[genlist] enable item align feature for wearable profile

Change-Id: I76fc335ea8c33391f91190cbeadf9ee29de2ec96
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
6 years agoAdd overscroll effect
Wonki Kim [Thu, 18 Jan 2018 08:20:34 +0000 (17:20 +0900)]
Add overscroll effect

Change-Id: I064f44166ee0ebcf8c7cd06a0fa389946f41531e
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
6 years agoelm_plug: Add plug message feature
Wonki Kim [Wed, 17 Jan 2018 11:13:48 +0000 (20:13 +0900)]
elm_plug: Add plug message feature

Change-Id: I453905c5b46311c38eb8ab0972f654ac820c5671
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
6 years agoelementary: Add missed type for legacy. 91/167691/1
Woochan Lee [Fri, 19 Jan 2018 07:51:59 +0000 (16:51 +0900)]
elementary: Add missed type for legacy.

Summary:
We've been missed type of class name.

Add legacy class name to maintain compatibility.

Reviewers: jpeg, woohyun, Jaehyun_Cho

Subscribers: cedric, jpeg

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

Change-Id: I69146f9427b55fd7dd91b30bee4017cb13fd36c2

6 years agoelm_genlist : Synchronize accessibility code(2) 57/167657/1
JunsuChoi [Fri, 19 Jan 2018 05:12:44 +0000 (14:12 +0900)]
elm_genlist : Synchronize accessibility code(2)

   add children_get function to get contents of item.
   +
   ------------------------------------------------------
   [ATSPI][elm_genlist] Remove ", header" from the atspi name.

      Remove the code to add ", header" to name when genlist's item is group type.
      "header" read out screen reader side.
   ------------------------------------------------------

Change-Id: I6669c72a49a3967831796e39142ce03fd25cd9cb

6 years agoRevert "elm_genlist : Synchronize accessibility code" 45/167645/1
JunsuChoi [Fri, 19 Jan 2018 03:43:09 +0000 (12:43 +0900)]
Revert "elm_genlist : Synchronize accessibility code"

This reverts commit 90f49b488631efd317c6f8981b1163a836f5bfe2.

Change-Id: I8c664efdb4849855329f9b7ca046041ab5c5dd7f

6 years ago[EXTN_GL] Add gl-backend in ecore_evas_extn 01/167401/2
sunghyun kim [Wed, 17 Jan 2018 10:07:30 +0000 (19:07 +0900)]
[EXTN_GL] Add gl-backend in ecore_evas_extn

- it is base on tizen-remote-surface
- it can be enabled using environment value
  (ex) ECORE_EVAS_EXTN_SOCKET_ENGINE=wayland_egl

Change-Id: I621dd669025061973a77e9685e2b1c86bf4ddffa

6 years agoefl_ui_win: add window configuring feature on WL 38/167638/3
Daekwang Ryu [Thu, 18 Jan 2018 02:44:19 +0000 (11:44 +0900)]
efl_ui_win: add window configuring feature on WL

Change-Id: Ifb354a0f3b31fa748fbac9ef08395108e6106963

6 years agoelm_genlist : Synchronize accessibility code 98/167598/2
JunsuChoi [Thu, 18 Jan 2018 12:08:58 +0000 (21:08 +0900)]
elm_genlist : Synchronize accessibility code

   Remove code related to name_get for old ux
   and add children_get function to get contents of item.

Change-Id: I109efb44f781c9ebd6171eb666daa49590387f1f

6 years agomark deprecated APIs with EINA_DEPRECATED 60/167460/2
Myoungwoon Roy, Kim [Wed, 17 Jan 2018 23:53:25 +0000 (08:53 +0900)]
mark deprecated APIs with EINA_DEPRECATED

    ========================================================
    mark deprecated APIs with EINA_DEPRECATED

Signed-Off-By: Jee-Yong Um <jc9.um@samsung.com>
    Change-Id: I1a68481e9fcfaaa361ffc71a127aef477c318020

    Original commit: 46a5b2ef0eaa665ae6ea1deb25c29d9f15428dc8
    =========================================================

Change-Id: Ie303613f29122518175641049aceb8b1edafbcd2

6 years agoslider: fix slider for tizen 3.0 GUI guide, elm_prefs: add @internal 43/167343/5
Myoungwoon Roy, Kim [Wed, 17 Jan 2018 06:47:54 +0000 (15:47 +0900)]
slider: fix slider for tizen 3.0 GUI guide, elm_prefs: add @internal

    =====================================================
    slider: fix slider for tizen 3.0 GUI guide.

    - deleted unnecessary vector objects.
    - change slider indicator initial value.

Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
    Change-Id: Ib05f483e2d3f362294bed5ab280327bd27022d76

    Original commit: 07fb895f70cc65d4ec3681fdc12fe9f739cf76f5
    =========================================================
    elm_prefs: add @internal to defgroup not to show in document

Signed-Off-By: Jee-Yong Um <jc9.um@samsung.com>
    Change-Id: Id68f0880657284cfbc8a80ccfafd7793690dabf0

    Original commit: c616c666a14f326cdb193b3ec6a3cab2fcc27382
    =========================================================

Change-Id: I8fd1e776ee3305d4c67e856b362e177ead714470

6 years agoelementary_tizen genlist: apply Tizen's color_class feature
Youngbok Shin [Thu, 18 Jan 2018 11:55:04 +0000 (20:55 +0900)]
elementary_tizen genlist: apply Tizen's color_class feature

@tizen_feature

6 years agoelementary entry: Do not send anchor clicked when long pressed
Youngbok Shin [Thu, 18 Jan 2018 10:02:56 +0000 (19:02 +0900)]
elementary entry: Do not send anchor clicked when long pressed

@tizen_fix

6 years agoelm_win: fix precreated window logic. 33/167333/7
Myoungwoon Roy, Kim [Wed, 17 Jan 2018 05:30:21 +0000 (14:30 +0900)]
elm_win: fix precreated window logic.

    =====================================================================
    elm_win: fix precreated window logic.

    Even though window's type is different, window precreation should be
    supported.

    @tizen_fix
Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
    Change-Id: I9b020971f3ce9885540dfd02e5b03165186b59e8
    =====================================================================

Original commit: 6c0c2d78a8e514536884008ba74f767d1c8ea1ea

Change-Id: I3c5f2810a03b77d74f0282ee8328e6e5e61cf3be

6 years agocopypaste: add copypasteUI module to elementary 52/167552/4
Thiep Ha [Thu, 18 Jan 2018 06:44:23 +0000 (15:44 +0900)]
copypaste: add copypasteUI module to elementary

This migrates the copypasteUI.

Change-Id: Ic85b221e76595136d411b18e59a6a17c06319518

6 years agoefl_ui_clock: Disabled Mirroring. 57/167557/2
Woochan Lee [Thu, 18 Jan 2018 07:22:12 +0000 (16:22 +0900)]
efl_ui_clock: Disabled Mirroring.

This is following tizen UX.

Change-Id: Iee0033605ad2f28d3442b5d39690424e7830dbc7

6 years agoindex: Add tizen only feature to support mobile UX. 59/167559/3
Woochan Lee [Thu, 18 Jan 2018 07:34:31 +0000 (16:34 +0900)]
index: Add tizen only feature to support mobile UX.

@tizen_feature

Change-Id: I0010bb09abf13845bd8da86f93ad979f213054de

6 years agocalendar: Disabled Mirror feature. 42/167542/6
Woochan Lee [Thu, 18 Jan 2018 06:34:27 +0000 (15:34 +0900)]
calendar: Disabled Mirror feature.

This is not tizen UX.

Change-Id: I38ff97002e129dc6dbf240cfba761bb1136e4b0e

6 years agoDatetime: Prevent null pointer reference. 44/167544/2
Woochan Lee [Thu, 18 Jan 2018 06:44:32 +0000 (15:44 +0900)]
Datetime: Prevent null pointer reference.

When _elm_datetime_items_get() calling with only time format after datetime creation.
The location has been swapped. so some of sorted_field index address gets a invalid
address. then it makes a crash.

@tizen_fix

Change-Id: I8e073237793d6af46a726be6cd51827f14c15661

6 years agoelementary entry/widget: Fix entry size/cursor/region calculation for Tizen UX
Youngbok Shin [Thu, 18 Jan 2018 07:42:06 +0000 (16:42 +0900)]
elementary entry/widget: Fix entry size/cursor/region calculation for Tizen UX

@tizen_fix

6 years agoentry: Fix elm_entry_entry_get to return utf8 plain text when password mode is enabled
Youngbok Shin [Thu, 18 Jan 2018 06:42:27 +0000 (15:42 +0900)]
entry: Fix elm_entry_entry_get to return utf8 plain text when password mode is enabled

It was Tizen Only feature in Tizen 2.3.

@tizen_fix

6 years agoentry: Show/Hide guide text immediately
Youngbok Shin [Thu, 18 Jan 2018 06:26:55 +0000 (15:26 +0900)]
entry: Show/Hide guide text immediately

@tizen_fix

6 years agoelm_calendar: Add Tizen Only features. 18/167218/4
Woochan Lee [Tue, 16 Jan 2018 07:54:09 +0000 (16:54 +0900)]
elm_calendar: Add Tizen Only features.

Using ICU, Add focused UI

Change-Id: I5de70fe4b7625eb792abaa9b96ac52070121cd94

6 years agoefl_ui_multibuttonentry: Add tizen only features. 11/167311/4
Woochan Lee [Wed, 17 Jan 2018 04:36:30 +0000 (13:36 +0900)]
efl_ui_multibuttonentry: Add tizen only features.

Change-Id: Ie21710f46f2c5faff3cb8d0306eb404f5f26f3db

6 years agoefl_ui_clock(elm_datetime): Add tizen only features. 47/167247/3
Woochan Lee [Tue, 16 Jan 2018 10:26:52 +0000 (19:26 +0900)]
efl_ui_clock(elm_datetime): Add tizen only features.

Change-Id: Ia989437f9ec17dbc48671aa5d251c0685b0ed42f

6 years agoelm_spinner: Add Tizen_Only features. 26/167126/4
Woochan Lee [Mon, 15 Jan 2018 12:23:49 +0000 (21:23 +0900)]
elm_spinner: Add Tizen_Only features.

It's for supporting Tizen UX, and compatibility.

Change-Id: Ide9913926b6204c944618a791d032d40ca702734

6 years agoelementary label: add missing code for style user push/pop/peek patch
Youngbok Shin [Thu, 18 Jan 2018 05:44:43 +0000 (14:44 +0900)]
elementary label: add missing code for style user push/pop/peek patch

@tizen_fix

6 years agoelementary layout: add internal APIs for handling a part's alignment
Youngbok Shin [Thu, 18 Jan 2018 05:38:51 +0000 (14:38 +0900)]
elementary layout: add internal APIs for handling a part's alignment

It is added for C# requirements.

@tizen_feature

6 years agoelementary: Apply paragraph direction according to locale
Youngbok Shin [Thu, 18 Jan 2018 05:32:37 +0000 (14:32 +0900)]
elementary: Apply paragraph direction according to locale

It checks the direction of current system locale by
getting internally predefined keyword "default:LTR" and "default:RTL".

@tizen_feature

6 years agoelementary: fix EFL_UI_WIDGET_EXTRA_OPS redefined issue caused by color class patches
Youngbok Shin [Thu, 18 Jan 2018 05:10:24 +0000 (14:10 +0900)]
elementary: fix EFL_UI_WIDGET_EXTRA_OPS redefined issue caused by color class patches

@tizen_fix

6 years agoatspi: remove build warning for efl_access interface 92/167492/2
JunsuChoi [Thu, 18 Jan 2018 04:14:51 +0000 (13:14 +0900)]
atspi: remove build warning for efl_access interface

Change-Id: Ie3ba859053d0bfe42e7327ce9c014cd720512622

6 years agoelementary: Override Paragraph Direction APIs
Youngbok Shin [Thu, 18 Jan 2018 05:00:58 +0000 (14:00 +0900)]
elementary: Override Paragraph Direction APIs

@tizen_feature

6 years agoDefault theme: remove wrong targets from program. 07/167307/5
Myoungwoon Roy, Kim [Wed, 17 Jan 2018 02:47:18 +0000 (11:47 +0900)]
Default theme: remove wrong targets from program.

    Some of styles contain STATE_SET programs, that try to switch part into
    non existents description. For desctop application, such as Enventor and
    Eflete this make launch and work slow.
    This commit fix this situation by removing wrong targets or add missed
    states into target parts.

    Change-Id: Ia9f51afaa096cadff363d7ea28d40059b5be04a2
Signed-off-by: Mykyta Biliavskyi <m.biliavskyi@samsung.com>
Original commit: c214b769d8d83bd222447f39e150fdcbed5fac11

Change-Id: I2971c3c80c51b7949f69622601a427d3a6d8d1ab

6 years agoctxpopup: fix unintentional item style change 80/167480/2
JinYong Park [Thu, 18 Jan 2018 02:20:45 +0000 (11:20 +0900)]
ctxpopup: fix unintentional item style change

When ctxpopup set style, show, set horizontal, change item's text,
item change style to smae with ctxpopup although it has its own style.

@tizen_fix

original patch : https://review.tizen.org/gerrit/#/c/166589/

Change-Id: I8bdafd1adf34ca3b621925065144dbfb921b01a7
Signed-off-by: JinYong Park <j4939.park@samsung.com>
6 years agoctxpopup: add animation signal emit after sizing eval. 78/167478/2
JinYong Park [Thu, 18 Jan 2018 02:12:00 +0000 (11:12 +0900)]
ctxpopup: add animation signal emit after sizing eval.

In some case, sizing eval calculate new ctxpopup direction,
but animation signal doesn't be emitted.
For example, move ctxpopup after show is called.

@tizen_fix

original patch : https://review.tizen.org/gerrit/#/c/166635/

Change-Id: I6b65a035ab8be6b84e70cd013ee20d2d360ff932
Signed-off-by: JinYong Park <j4939.park@samsung.com>
6 years agoctxpopup: remove deleted api, change old api to new api 62/167362/2
JinYong Park [Wed, 17 Jan 2018 07:33:17 +0000 (16:33 +0900)]
ctxpopup: remove deleted api, change old api to new api

deleted api like focus_cycle produce error, so wrap it in comments
old api like eo_add, atspi produce error too, so it change to new api

Change-Id: I7d20c107e10ab65b09b95037dfac1a95cfff32c5
Signed-off-by: JinYong Park <j4939.park@samsung.com>
6 years agoelm_tooltip: set theme group to NULL
Sungtaek Hong [Wed, 17 Jan 2018 04:39:52 +0000 (13:39 +0900)]
elm_tooltip: set theme group to NULL

Summary:
Even though elm_tooltip does not support EO API, for now,
Efl.Ui.Widget will support elm_tooltip-like feature.
This change group name compatible with new group name policy.

Reviewers: jpeg, woohyun, herdsman, zmike

Subscribers: cedric

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

6 years agoelm_datetime: use legacy elm_button
Sungtaek Hong [Wed, 17 Jan 2018 04:39:33 +0000 (13:39 +0900)]
elm_datetime: use legacy elm_button

Summary:
elm_datetime and Efl.Ui.Clock uses same module: clock_input_ctxpopup.
The module creates internal field object.
Use legay button for field object until Efl.Clock and datetime module
policy is fixed.

Reviewers: jpeg, CHAN, woohyun

Subscribers: cedric

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

6 years agopanes: Expose parts in EO file
Jean-Philippe Andre [Tue, 16 Jan 2018 13:36:04 +0000 (22:36 +0900)]
panes: Expose parts in EO file

6 years agoefl_animation: fix typo
YeongJong Lee [Wed, 17 Jan 2018 03:51:31 +0000 (12:51 +0900)]
efl_animation: fix typo

Test Plan: make

Reviewers: Jaehyun_Cho

Subscribers: cedric, jpeg

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

6 years agoselection: delete callbacks when the manager is deleted
Thiep Ha [Wed, 17 Jan 2018 00:22:13 +0000 (09:22 +0900)]
selection: delete callbacks when the manager is deleted

If the selection manager is deleted before the drop objects
are deleted, we need to remove callbacks in its destructor.

Thank @herdsman for reporting this.

6 years agoefl_ui_focus_manager: fix infinit loop in enlightenment wizard
Marcel Hollerbach [Tue, 16 Jan 2018 22:12:04 +0000 (23:12 +0100)]
efl_ui_focus_manager: fix infinit loop in enlightenment wizard

we unsetted and setted focus_manager once too often, so we ended up in a
infinite loop. This should be fixed now. Sorry Derek!

6 years agoefl_ui_focus: merge efl_ui_focus_user and efl_ui_focus_object into one mixin
Yeongjong Lee [Tue, 16 Jan 2018 20:17:11 +0000 (21:17 +0100)]
efl_ui_focus: merge efl_ui_focus_user and efl_ui_focus_object into one mixin

Summary:
focus_user and focus_object are similar classes. by merging them into
one mixin, we can maintain consistency.

Test Plan: make check

Reviewers: bu5hm4n

Subscribers: cedric, Jaehyun_Cho, woohyun, jpeg

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

6 years agoPyolian: fix and tests for recent changes
Dave Andreoli [Tue, 16 Jan 2018 19:53:20 +0000 (20:53 +0100)]
Pyolian: fix and tests for recent changes

q66: please leave the pyolian updating work to me,
it's harder for me to fix wrong stuff instead of just
implement myself ;)

6 years agoeina: make updating rectangle cache thread safe.
Cedric BAIL [Tue, 16 Jan 2018 17:35:43 +0000 (09:35 -0800)]
eina: make updating rectangle cache thread safe.

6 years agoeolian: do not require unit when stringifying types
Daniel Kolesa [Tue, 16 Jan 2018 15:36:45 +0000 (16:36 +0100)]
eolian: do not require unit when stringifying types

As it is no longer necessary to pass unit when evaluating exprs,
it is not necessary to pass it here either. Convert all the APIs
to the new style and update all instances in our tree.

6 years agoeolian: do not require unit for expr eval APIs
Daniel Kolesa [Tue, 16 Jan 2018 15:10:43 +0000 (16:10 +0100)]
eolian: do not require unit for expr eval APIs

The necessary information is now stored directly in the expr
during database validation.

Also enable expr validation for params.

6 years agoeolian: cache enum expr in the database
Daniel Kolesa [Tue, 16 Jan 2018 14:50:58 +0000 (15:50 +0100)]
eolian: cache enum expr in the database

6 years agoeolian: expose _eval_type to internals
Daniel Kolesa [Tue, 16 Jan 2018 14:30:58 +0000 (15:30 +0100)]
eolian: expose _eval_type to internals

6 years agoexamples: Show off usage of "background" part
Jean-Philippe Andre [Tue, 16 Jan 2018 13:04:21 +0000 (22:04 +0900)]
examples: Show off usage of "background" part

See bg_cxx_example_01

6 years agowidget: Expose "background" part (for bindings)
Jean-Philippe Andre [Tue, 16 Jan 2018 13:04:10 +0000 (22:04 +0900)]
widget: Expose "background" part (for bindings)

6 years agocxx: Remove elm_widget.h from Elementary.hh
Jean-Philippe Andre [Tue, 16 Jan 2018 13:03:49 +0000 (22:03 +0900)]
cxx: Remove elm_widget.h from Elementary.hh

It's internal.

6 years agoselection: Fix two remaining warnings
Jean-Philippe Andre [Tue, 16 Jan 2018 11:36:11 +0000 (20:36 +0900)]
selection: Fix two remaining warnings

6 years agoanimation: Fix some warnings including a real one
Jean-Philippe Andre [Tue, 16 Jan 2018 11:34:48 +0000 (20:34 +0900)]
animation: Fix some warnings including a real one

Real issue here:

.../efl_animation_group.c:120:40: warning: for loop has empty body [-Wempty-body]
   EINA_LIST_FREE(pd->animations, anim);

6 years agoefl_playable: split Efl.Player interface to Efl.Playable interface
Sungtaek Hong [Tue, 16 Jan 2018 11:31:15 +0000 (20:31 +0900)]
efl_playable: split Efl.Player interface to Efl.Playable interface

Summary:
Efl.Player interface simply provides play functions,
but another interface which indicates Efl.Player will play is also
needed.

Test Plan: Run elementary_test->Efl.Animation tests

Reviewers: woohyun, conr2d, Jaehyun_Cho, jpeg, cedric

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

6 years agoEfl.Ui.Progressbar: Add Efl.Ui.Translatable/Markable too.
Amitesh Singh [Tue, 16 Jan 2018 11:35:28 +0000 (20:35 +0900)]
Efl.Ui.Progressbar: Add Efl.Ui.Translatable/Markable too.

it was missed in previous patch.

6 years agoEfl.Ui.Progressbar: Add missing Efl.Text/Content
Amitesh Singh [Tue, 16 Jan 2018 11:09:54 +0000 (20:09 +0900)]
Efl.Ui.Progressbar: Add missing Efl.Text/Content

6 years agoeo: Fix make check
Jean-Philippe Andre [Tue, 16 Jan 2018 10:48:49 +0000 (19:48 +0900)]
eo: Fix make check

The cache had a generation count, removing this check breaks eo suite.
EO is designed to tolerate init/shutdown cycles (as long as
dlopen/dlclose isn't involved).

Note: the ugly goto are useless as GCC -O2 understands EINA_(UN)LIKELY
and deals with it as expected (just look at the asm produced).

See 34d9f2070696027199a56cb621c0526ea1430e8f

6 years agoeo: Remove unused goto label
Jean-Philippe Andre [Tue, 16 Jan 2018 09:32:15 +0000 (18:32 +0900)]
eo: Remove unused goto label

6 years agoedje: Add beta event when an invalid part is used
Jean-Philippe Andre [Tue, 16 Jan 2018 09:21:48 +0000 (18:21 +0900)]
edje: Add beta event when an invalid part is used

This can be used for debugging, by listening to
  EFL_LAYOUT_EVENT_PART_INVALID

Or just use
  EINA_LOG_LEVELS=edje:2
if you just need the logs.

6 years agopanes: Fix invalid part name in layout recalc
Jean-Philippe Andre [Tue, 16 Jan 2018 09:10:30 +0000 (18:10 +0900)]
panes: Fix invalid part name in layout recalc

6 years agocode widget: Fix order of operations
Jean-Philippe Andre [Tue, 16 Jan 2018 09:10:00 +0000 (18:10 +0900)]
code widget: Fix order of operations

super functions, when creating stuff, should be called first.

6 years agoedje: add invalid part handler
Jean-Philippe Andre [Tue, 16 Jan 2018 07:02:33 +0000 (16:02 +0900)]
edje: add invalid part handler

6 years agoecore/edje/elm: Fix a few WRN from calls to NULL
Jean-Philippe Andre [Tue, 16 Jan 2018 06:12:49 +0000 (15:12 +0900)]
ecore/edje/elm: Fix a few WRN from calls to NULL

This fixes some of the warnings generated by calling functions on NULL
objects. One of the main remaining points is to avoid unwanted warnings
on non-existing parts.

Ref T6326

6 years agoeo: Warn on calls to NULL object
Jean-Philippe Andre [Tue, 16 Jan 2018 06:11:44 +0000 (15:11 +0900)]
eo: Warn on calls to NULL object

This makes eo print a WRN message in case a function is called on NULL.
efl_del is an exception to this rule (implemented in a hackish way, I
admit). I don't know any language or object model where using a null
object doesn't result in an exception or crash, except EO. In any case,
calls to null are invalid.

The next commits will resolve most warnings for EFL.

Ref T6326

6 years agoevas: Remove stupid warning
Jean-Philippe Andre [Mon, 15 Jan 2018 11:16:22 +0000 (20:16 +0900)]
evas: Remove stupid warning

6 years agoedje: Add property "part_exist"
Jean-Philippe Andre [Mon, 15 Jan 2018 08:27:10 +0000 (17:27 +0900)]
edje: Add property "part_exist"

This allows to safely verify if a part exists, without triggering any
potential call to NULL object, or even requiring the efl_part() handle
to be created.

This is perfectly equivalent to edje_object_part_exists(), but
implemented by both edje object and elm layout.

6 years agoselection: Disable debug logs
Jean-Philippe Andre [Tue, 16 Jan 2018 03:26:28 +0000 (12:26 +0900)]
selection: Disable debug logs

selection's namespacing still requires some love

6 years agoelm genlist test - don't overflow test time nanoseconds if system slow
Carsten Haitzler (Rasterman) [Tue, 16 Jan 2018 08:48:16 +0000 (17:48 +0900)]
elm genlist test - don't overflow test time nanoseconds if system slow

with a long enough test or slow enough machine these do overflow so
force everything to unsigned long long's for genlist test performance
measuring.

6 years agoeina: remove usless newline
Jean Guyomarc'h [Tue, 16 Jan 2018 05:58:38 +0000 (14:58 +0900)]
eina: remove usless newline

Summary:
ecore_evas: remove debug

eina: unregister log level when done with

Fixes a constant memory leak.

eina: introduce EINA_HOT and EINA_COLD

These attributes respectivelly expand to __attribute__ ((hot)) and
__attribute__ ((cold)) when available. They allow to mark functions are
being hot/cold (frequently used or not) as well as to qualify labels
within a function (likely/unlikely branches).

eo: speed-up generated calls by removing call cache

The call cache needed to by thread-local, to avoid concurrency issues.
Problem with TLS is that is adds an extra overhead, which appears to be
greater than the optimization the cache provides.

Op is naturally atomic, because it is an unsigned integer. As such, it
cannot be tempered with while another thread is reading it. When
entering the generated function, the first operation done is reading
'op'. If we have concurrency, we will have access sequences returning
either EFL_NOOP or a VALID op, because 'op' is not set until the very
end of the function, when everything has been computed. As such, we now
use the 'op' atomic integer to instore a lock-free/wait-free mechanism,
which allows to drop the TLS nature of the cache, speeding up the access
to the cache, and therefore making functions execute faster.

We don't test anymore the generation count. This can be put as a
limitation. If means that if you call efl_object_shutdown() and
re-initialize it later with different data, opcodes will be invalid.
I am not sure there is any usecase for this to ever happen.
We could move all the caches in a dedicated section, that can be
overwritten after a call to efl_object_shutdown(), but I am not sure it
will be very portable.

Benchmark: mean over 3 executions of
   ELM_TEST_AUTOBOUNCE=100 time elementary_test -to genlist

```
                     BEFORE               AFTER
------------------------------------------------------------
time (ns)            11114111647.0        9147676220.0
frames               2872.3333333333335   2904.6666666666665
time per frame (ns)  3869364.6666666665   3149535.3333333335
user time (s)        11.096666666666666   9.22
cpu (%)              22.666666666666668   18.333333333333332
```

Ref T6580

Reviewers: raster, cedric

Subscribers: cedric, jpeg

Maniphest Tasks: T6580

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

6 years agoselection_dnd: fix warnings in clang
Thiep Ha [Tue, 16 Jan 2018 07:33:30 +0000 (16:33 +0900)]
selection_dnd: fix warnings in clang

Fix warnings about type convert and vars init in clang and remove comments.

6 years agoelm_panel: add exception handling in _drawer_close()
Jaeun Choi [Tue, 16 Jan 2018 05:57:38 +0000 (14:57 +0900)]
elm_panel: add exception handling in _drawer_close()

this fixes a bug with scrollable panel not being blocked
when it is closed. scroll is blocked in _anim_stop_cb()
which is called after elm_interface_scrollable_region_bring_in().
but if panel content is already at the target position, _anim_stop_cb()
is not called. so there is a need to check content's position and
handle the exceptional case.

6 years agoRevert "elm_panel: add exception handling in _drawer_close()"
Jaeun Choi [Tue, 16 Jan 2018 05:48:11 +0000 (14:48 +0900)]
Revert "elm_panel: add exception handling in _drawer_close()"

This reverts commit 2acfc3e381dc4fc87e3249b0f63f1ba5e0d1c2de.

6 years agoelm_panel: add exception handling in _drawer_close()
Jaeun Choi [Tue, 16 Jan 2018 04:51:11 +0000 (13:51 +0900)]
elm_panel: add exception handling in _drawer_close()

this fixes a bug with scrollable panel not being blocked
when it is closed. scroll is blocked in _anim_stop_cb(),
which is called after elm_interface_scrollable_region_bring_in().
but if panel content is already at the target position, _anim_stop_cb()
is not called. so there is a need to check content's position and
handle the exceptional case.

6 years agoelm_panel: prevent redundant callback function addition or deletion
Jaeun Choi [Tue, 16 Jan 2018 04:19:36 +0000 (13:19 +0900)]
elm_panel: prevent redundant callback function addition or deletion

there is a need to check if callback functions already exist or not
before adding or deleting them, because they are added or deleted
at two points:
in _elm_panel_scrollable_set() and _elm_panel_elm_widget_disable().

6 years agoecore: forgotten EFL_MAIN_EX.
Cedric Bail [Mon, 15 Jan 2018 22:22:27 +0000 (14:22 -0800)]
ecore: forgotten EFL_MAIN_EX.

6 years agoelementary dnd: fix tautology
Boris Faure [Mon, 15 Jan 2018 20:30:28 +0000 (21:30 +0100)]
elementary dnd: fix tautology

6 years agoelc_popup: reorder the sub objects free sequence
YeongJong Lee [Mon, 15 Jan 2018 10:55:37 +0000 (19:55 +0900)]
elc_popup: reorder the sub objects free sequence

Summary:
when the popup is deleted, some EVAS_CALLBACK_DEL callback functions
try to use already freed objects.
reorder free sequence to prevent it.

Test Plan:
1. elementary_test -to popup
2. check 'Enable popup scroll'
3. open several popup test and click Close button.
4. check that there are no error message

Reviewers: Jaehyun_Cho, bu5hm4n

Reviewed By: Jaehyun_Cho

Subscribers: cedric, jpeg, herb

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

6 years agoexamples: efl_ui_list: remove unused variables
Stefan Schmidt [Mon, 15 Jan 2018 09:41:58 +0000 (10:41 +0100)]
examples: efl_ui_list: remove unused variables

6 years agoexamples: calendar_cxx: comment out unused variables
Stefan Schmidt [Mon, 15 Jan 2018 09:40:39 +0000 (10:40 +0100)]
examples: calendar_cxx: comment out unused variables

I normally would simply remove them, but they belong to some more
commented out code below. We should either remove both or get this
fixed.

6 years agoexamples: cxx: avoid tick in warning message
Stefan Schmidt [Mon, 15 Jan 2018 09:38:36 +0000 (10:38 +0100)]
examples: cxx: avoid tick in warning message

The compiler is not to happy about having this tick in the warning
message. Switch to the more formal can not and be done with it.

menu_cxx_example_01.cc:3:26: warning: missing terminating ' character

6 years agoecore_file_monitor: replace EINA_LIST_FOREACH to EINA_LIST_FOREACH_SAFE
WooHyun Jung [Mon, 15 Jan 2018 04:54:01 +0000 (13:54 +0900)]
ecore_file_monitor: replace EINA_LIST_FOREACH to EINA_LIST_FOREACH_SAFE

If ecore_file_monitor_del is called inside the file monitor callback function,
eina_list found from monitor_hash would be freed. (You can check this inside
eina_hash_list_remove.)
Then, EINA_LIST_FOREACH makes one more for loop with invalid eina_list pointer.

EINA_LIST_FOREACH_SAFE can prevent from this problem.

6 years agoEcore_Win32: move monitor window initialization to earlier in init func
Vincent Torri [Sun, 14 Jan 2018 13:33:10 +0000 (22:33 +0900)]
Ecore_Win32: move monitor window initialization to earlier in init func

Summary: This monitor window is just used to receive events when mutiple
monitors are available. it should not be managed by the ecore loop
(creation and destruction events), so initting it earlier means
ecore_win32 attaches less memory/overhead to it as it's just being
used for notifications for devices.

Test Plan: DrMemory to check used memory

Reviewers: cedric

Subscribers: jpeg

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

6 years agoPyolian: add tests for recently added funcs
Dave Andreoli [Sun, 14 Jan 2018 11:05:33 +0000 (12:05 +0100)]
Pyolian: add tests for recently added funcs

6 years agoCorrect module name for the interface context
Andy Williams [Sun, 14 Jan 2018 00:21:35 +0000 (00:21 +0000)]
Correct module name for the interface context

6 years agodocs: Show when classes really are top level EFL namespace
Andy Williams [Sun, 14 Jan 2018 00:05:59 +0000 (00:05 +0000)]
docs: Show when classes really are top level EFL namespace

6 years agoecore_audio wasapi - fix ecore win32 handler deletion and destruction
Carsten Haitzler (Rasterman) [Sat, 13 Jan 2018 05:44:07 +0000 (14:44 +0900)]
ecore_audio wasapi - fix ecore win32 handler deletion and destruction

vtorri pointed this out in T6607. this should fix this.

fixed T6607

@fix