summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaehyub Kim <taehyub.kim@samsung.com>2017-07-28 10:45:56 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2017-07-28 10:45:56 +0900
commit012e41443006076526bb37d95a6c1c030c16df5c (patch)
tree8c7d421b5dae923ed00e2813cac3dbc256cc0ef7
parent634f7d0dbb191dfa6805e1bd1c909e37d6a12a3b (diff)
downloadefl-012e41443006076526bb37d95a6c1c030c16df5c.tar.gz
Implementation of efl_provider_find for EFL_UI_WIN_CLASS
Summary: Implement efl_provider_find function for efl_ui_win class. This will support to search window class by efl_provider_find function. Reviewers: jpeg, cedric, Jaehyun_Cho, thiepha, woohyun, Blackmole Reviewed By: jpeg, cedric Differential Revision: https://phab.enlightenment.org/D5045
-rw-r--r--src/lib/elementary/efl_ui_win.c8
-rw-r--r--src/lib/elementary/efl_ui_win.eo1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index dcc870e361..cb86b45943 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -6696,6 +6696,14 @@ _efl_ui_win_efl_input_state_lock_enabled_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Dat
return evas_seat_key_lock_is_set(m, name, seat);
}
+EOLIAN static Efl_Object *
+_efl_ui_win_efl_object_provider_find(Eo *obj, Efl_Ui_Win_Data *pd, const Efl_Object *klass)
+{
+ if (klass == EFL_UI_WIN_CLASS)
+ return obj;
+ return efl_provider_find(efl_super(obj, MY_CLASS), klass);
+}
+
// See evas_inline.x
#define _EVAS_COLOR_CLAMP(x, y) do { \
if (x > y) { x = y; bad = 1; } \
diff --git a/src/lib/elementary/efl_ui_win.eo b/src/lib/elementary/efl_ui_win.eo
index 431f73ace1..ca37f60f8f 100644
--- a/src/lib/elementary/efl_ui_win.eo
+++ b/src/lib/elementary/efl_ui_win.eo
@@ -971,6 +971,7 @@ class Efl.Ui.Win (Elm.Widget, Efl.Canvas, Elm.Interface.Atspi.Window,
Efl.Container.content { get; set; }
Efl.Container.content_unset;
Efl.Part.part;
+ Efl.Object.provider_find;
}
constructors {
.name;