summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaehyub Kim <taehyub.kim@samsung.com>2017-07-28 15:01:31 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-04 10:24:03 +0900
commit94d3fd3d82564ead619c7eef1eaccd70968031b4 (patch)
tree5cf783414042cfb8fc0b41c3e957e2b043e6ff98
parenta1509ab98d8c959a1e235715ccbdd0c273cb9c2a (diff)
downloadefl-94d3fd3d82564ead619c7eef1eaccd70968031b4.tar.gz
win: implement 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.c9
-rw-r--r--src/lib/elementary/efl_ui_win.eo1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index e9ecc3c145..e37110db1b 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -6698,6 +6698,15 @@ _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 EINA_UNUSED,
+ 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 91863a848d..3f2806f7ef 100644
--- a/src/lib/elementary/efl_ui_win.eo
+++ b/src/lib/elementary/efl_ui_win.eo
@@ -972,6 +972,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;