forked from enlightenment/efl
efl_ui/popup_backwall: implement efl.file file and key get methods
these need to be proxied to the internal image object to return correct values Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9508
This commit is contained in:
parent
962a777c10
commit
15eff40820
|
@ -322,6 +322,26 @@ _efl_ui_popup_part_backwall_repeat_events_get(const Eo *obj, void *_pd EINA_UNUS
|
||||||
return efl_canvas_object_repeat_events_get(sd->backwall);
|
return efl_canvas_object_repeat_events_get(sd->backwall);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EOLIAN static Eina_Stringshare *
|
||||||
|
_efl_ui_popup_part_backwall_efl_file_file_get(const Eo *obj, void *_pd EINA_UNUSED)
|
||||||
|
{
|
||||||
|
Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
|
||||||
|
Efl_Ui_Popup_Data *sd = efl_data_scope_get(pd->obj, EFL_UI_POPUP_CLASS);
|
||||||
|
|
||||||
|
Eo *content = edje_object_part_swallow_get(sd->backwall, "efl.content");
|
||||||
|
return content ? efl_file_get(content) : NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
EOLIAN static Eina_Stringshare *
|
||||||
|
_efl_ui_popup_part_backwall_efl_file_key_get(const Eo *obj, void *_pd EINA_UNUSED)
|
||||||
|
{
|
||||||
|
Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
|
||||||
|
Efl_Ui_Popup_Data *sd = efl_data_scope_get(pd->obj, EFL_UI_POPUP_CLASS);
|
||||||
|
|
||||||
|
Eo *content = edje_object_part_swallow_get(sd->backwall, "efl.content");
|
||||||
|
return content ? efl_file_key_get(content) : NULL;
|
||||||
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_efl_ui_popup_part_backwall_efl_file_unload(Eo *obj, void *_pd EINA_UNUSED)
|
_efl_ui_popup_part_backwall_efl_file_unload(Eo *obj, void *_pd EINA_UNUSED)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,8 @@ class @beta Efl.Ui.Popup_Part_Backwall extends Efl.Ui.Layout_Part implements Efl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
implements {
|
implements {
|
||||||
|
Efl.File.file { get; }
|
||||||
|
Efl.File.key { get; }
|
||||||
Efl.File.load;
|
Efl.File.load;
|
||||||
Efl.File.unload;
|
Efl.File.unload;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue