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
This commit is contained in:
Taehyub Kim 2017-07-28 15:01:31 +09:00 committed by Jean-Philippe Andre
parent a1509ab98d
commit 94d3fd3d82
2 changed files with 10 additions and 0 deletions

View File

@ -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; } \

View File

@ -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;