efl loop: implement loop.get property to return self
this means that on loop_get on any obj as long as its a child of a loop obj... it'll retunr that loop now. it will work. no more code needed. we can shortcut this with ui/gfx objects returning the mainloop singletone.
This commit is contained in:
parent
da26351697
commit
0d0ba19e51
|
@ -2748,6 +2748,12 @@ _efl_loop_quit(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd EINA_UNUSED)
|
||||||
ecore_main_loop_quit();
|
ecore_main_loop_quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EOLIAN static Eo_Base *
|
||||||
|
_efl_loop_eo_base_loop_get(Eo *obj, Efl_Loop_Data *pd EINA_UNUSED)
|
||||||
|
{
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_check_event_catcher_add(void *data, const Eo_Event *event)
|
_check_event_catcher_add(void *data, const Eo_Event *event)
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,5 +40,6 @@ class Efl.Loop (Eo.Base)
|
||||||
}
|
}
|
||||||
implements {
|
implements {
|
||||||
Eo.Base.constructor;
|
Eo.Base.constructor;
|
||||||
|
Eo.Base.loop.get;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue