jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=94d3fd3d82564ead619c7eef1eaccd70968031b4

commit 94d3fd3d82564ead619c7eef1eaccd70968031b4
Author: Taehyub Kim <taehyub....@samsung.com>
Date:   Fri Jul 28 15:01:31 2017 +0900

    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
---
 src/lib/elementary/efl_ui_win.c  | 9 +++++++++
 src/lib/elementary/efl_ui_win.eo | 1 +
 2 files changed, 10 insertions(+)

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;

-- 


Reply via email to