summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-26 12:54:41 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-29 16:21:12 +0200
commita61cef3fb208655bb98e2bc511c2abe2b9169587 (patch)
tree16e4617b4b5a78eb463525b9d38443f8deb1e775 /src/lib
parenta247bd0f56cfd9ececa40b32c562541717a55e5b (diff)
efl_ui/popup: implement efl.file.unload for popup backwall part
this fixes unsetting images for popup backwall @fix Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9415
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/efl_ui_popup.c16
-rw-r--r--src/lib/elementary/efl_ui_popup_part_backwall.eo1
2 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_popup.c b/src/lib/elementary/efl_ui_popup.c
index c60f13753d..8d7271eb67 100644
--- a/src/lib/elementary/efl_ui_popup.c
+++ b/src/lib/elementary/efl_ui_popup.c
@@ -351,6 +351,22 @@ _efl_ui_popup_part_backwall_repeat_events_get(const Eo *obj, void *_pd EINA_UNUS
351 return efl_canvas_object_repeat_events_get(sd->backwall); 351 return efl_canvas_object_repeat_events_get(sd->backwall);
352} 352}
353 353
354EOLIAN static void
355_efl_ui_popup_part_backwall_efl_file_unload(Eo *obj, void *_pd EINA_UNUSED)
356{
357 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
358 Efl_Ui_Popup_Data *sd = efl_data_scope_get(pd->obj, EFL_UI_POPUP_CLASS);
359
360 efl_file_unload(efl_super(obj, EFL_UI_POPUP_PART_BACKWALL_CLASS));
361 Eo *prev_obj = edje_object_part_swallow_get(sd->backwall, "efl.content");
362 if (prev_obj)
363 {
364 edje_object_signal_emit(sd->backwall, "efl,state,content,unset", "efl");
365 edje_object_part_unswallow(sd->backwall, prev_obj);
366 efl_del(prev_obj);
367 }
368}
369
354EOLIAN static Eina_Error 370EOLIAN static Eina_Error
355_efl_ui_popup_part_backwall_efl_file_load(Eo *obj, void *_pd EINA_UNUSED) 371_efl_ui_popup_part_backwall_efl_file_load(Eo *obj, void *_pd EINA_UNUSED)
356{ 372{
diff --git a/src/lib/elementary/efl_ui_popup_part_backwall.eo b/src/lib/elementary/efl_ui_popup_part_backwall.eo
index 4a6a914a45..64bd8636b7 100644
--- a/src/lib/elementary/efl_ui_popup_part_backwall.eo
+++ b/src/lib/elementary/efl_ui_popup_part_backwall.eo
@@ -26,5 +26,6 @@ class @beta Efl.Ui.Popup_Part_Backwall extends Efl.Ui.Layout_Part implements Efl
26 } 26 }
27 implements { 27 implements {
28 Efl.File.load; 28 Efl.File.load;
29 Efl.File.unload;
29 } 30 }
30} 31}