efl_ui_popup: fix widget_parent inheritance
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Mon, 22 Apr 2019 19:30:05 +0000 (21:30 +0200)
committerYeongjong Lee <yj34.lee@samsung.com>
Wed, 24 Apr 2019 05:24:47 +0000 (14:24 +0900)
when you inherit from widget_parent, you MUST call the super function.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D8680

src/lib/elementary/efl_ui_popup.c
src/tests/elementary/spec/generator.py

index 47ef65b..341de7e 100644 (file)
@@ -112,6 +112,8 @@ _efl_ui_popup_efl_ui_widget_widget_parent_set(Eo *obj, Efl_Ui_Popup_Data *pd EIN
 
    efl_event_callback_add(pd->win_parent, EFL_GFX_ENTITY_EVENT_SIZE_CHANGED, _parent_geom_cb, obj);
    efl_event_callback_add(pd->win_parent, EFL_GFX_ENTITY_EVENT_POSITION_CHANGED, _parent_geom_cb, obj);
+
+   efl_ui_widget_parent_set(efl_super(obj, MY_CLASS), parent);
 }
 
 EOLIAN static void
index 1c61efa..72af701 100755 (executable)
@@ -6,7 +6,7 @@ tests = [
   ["Efl.Content" , "Efl.Ui.Button", "Efl.Ui.Frame", "Efl.Ui.Grid_Default_Item",
                    "Efl.Ui.List_Default_Item", "Efl.Ui.List_Empty_Item",
                    "Efl.Ui.Navigation_Layout", "Efl.Ui.Panel", "Efl.Ui.Progressbar",
-                   "Efl.Ui.Radio"]
+                   "Efl.Ui.Radio", "Efl.Ui.Popup"]
 ]
 
 fixture_gen_template = """