From cbaa3f596b3c1cb60adc1ee0139eb57ed9e7d442 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Mon, 22 Apr 2019 21:30:05 +0200 Subject: [PATCH] efl_ui_popup: fix widget_parent inheritance when you inherit from widget_parent, you MUST call the super function. Reviewed-by: Cedric BAIL Differential Revision: https://phab.enlightenment.org/D8680 --- src/lib/elementary/efl_ui_popup.c | 2 ++ src/tests/elementary/spec/generator.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_popup.c b/src/lib/elementary/efl_ui_popup.c index 47ef65b..341de7e 100644 --- a/src/lib/elementary/efl_ui_popup.c +++ b/src/lib/elementary/efl_ui_popup.c @@ -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 diff --git a/src/tests/elementary/spec/generator.py b/src/tests/elementary/spec/generator.py index 1c61efa..72af701 100755 --- a/src/tests/elementary/spec/generator.py +++ b/src/tests/elementary/spec/generator.py @@ -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 = """ -- 2.7.4