efl_ui/popup_backwall: implement efl.file file and key get methods
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 5 Aug 2019 18:56:44 +0000 (18:56 +0000)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 12 Aug 2019 07:22:58 +0000 (16:22 +0900)
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

src/lib/elementary/efl_ui_popup.c
src/lib/elementary/efl_ui_popup_part_backwall.eo

index 007e5f5..eea29e7 100644 (file)
@@ -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);
 }
 
+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
 _efl_ui_popup_part_backwall_efl_file_unload(Eo *obj, void *_pd EINA_UNUSED)
 {
index 64bd863..8b4eea3 100644 (file)
@@ -25,6 +25,8 @@ class @beta Efl.Ui.Popup_Part_Backwall extends Efl.Ui.Layout_Part implements Efl
       }
    }
    implements {
+      Efl.File.file { get; }
+      Efl.File.key { get; }
       Efl.File.load;
       Efl.File.unload;
    }