summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2019-08-05 18:56:44 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-06 09:26:40 +0200
commit15eff4082011fd13cadc781916e4813a008d0b94 (patch)
tree4a0205d883363b7b595a187aec306c4f2a64d766
parent962a777c10b75b3b0c870eba3e4344ae304e6f15 (diff)
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
-rw-r--r--src/lib/elementary/efl_ui_popup.c20
-rw-r--r--src/lib/elementary/efl_ui_popup_part_backwall.eo2
2 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_popup.c b/src/lib/elementary/efl_ui_popup.c
index 007e5f5b9b..eea29e7bdc 100644
--- a/src/lib/elementary/efl_ui_popup.c
+++ b/src/lib/elementary/efl_ui_popup.c
@@ -322,6 +322,26 @@ _efl_ui_popup_part_backwall_repeat_events_get(const Eo *obj, void *_pd EINA_UNUS
322 return efl_canvas_object_repeat_events_get(sd->backwall); 322 return efl_canvas_object_repeat_events_get(sd->backwall);
323} 323}
324 324
325EOLIAN static Eina_Stringshare *
326_efl_ui_popup_part_backwall_efl_file_file_get(const Eo *obj, void *_pd EINA_UNUSED)
327{
328 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
329 Efl_Ui_Popup_Data *sd = efl_data_scope_get(pd->obj, EFL_UI_POPUP_CLASS);
330
331 Eo *content = edje_object_part_swallow_get(sd->backwall, "efl.content");
332 return content ? efl_file_get(content) : NULL;
333}
334
335EOLIAN static Eina_Stringshare *
336_efl_ui_popup_part_backwall_efl_file_key_get(const Eo *obj, void *_pd EINA_UNUSED)
337{
338 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
339 Efl_Ui_Popup_Data *sd = efl_data_scope_get(pd->obj, EFL_UI_POPUP_CLASS);
340
341 Eo *content = edje_object_part_swallow_get(sd->backwall, "efl.content");
342 return content ? efl_file_key_get(content) : NULL;
343}
344
325EOLIAN static void 345EOLIAN static void
326_efl_ui_popup_part_backwall_efl_file_unload(Eo *obj, void *_pd EINA_UNUSED) 346_efl_ui_popup_part_backwall_efl_file_unload(Eo *obj, void *_pd EINA_UNUSED)
327{ 347{
diff --git a/src/lib/elementary/efl_ui_popup_part_backwall.eo b/src/lib/elementary/efl_ui_popup_part_backwall.eo
index 64bd8636b7..8b4eea33bf 100644
--- a/src/lib/elementary/efl_ui_popup_part_backwall.eo
+++ b/src/lib/elementary/efl_ui_popup_part_backwall.eo
@@ -25,6 +25,8 @@ class @beta Efl.Ui.Popup_Part_Backwall extends Efl.Ui.Layout_Part implements Efl
25 } 25 }
26 } 26 }
27 implements { 27 implements {
28 Efl.File.file { get; }
29 Efl.File.key { get; }
28 Efl.File.load; 30 Efl.File.load;
29 Efl.File.unload; 31 Efl.File.unload;
30 } 32 }