From 4dae9471866a9630e4e117e06b11bd0df370db68 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Fri, 13 Dec 2019 18:11:17 +0100 Subject: [PATCH] efl_ui: docuement code there was the request that this needs to be documented, here we are. Reviewed-by: Cedric BAIL Differential Revision: https://phab.enlightenment.org/D10874 --- src/lib/elementary/efl_ui_collection.c | 1 + src/lib/elementary/efl_ui_collection_view.c | 1 + src/lib/elementary/efl_ui_scroller.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/lib/elementary/efl_ui_collection.c b/src/lib/elementary/efl_ui_collection.c index 2ff6b54..3f2aacc 100644 --- a/src/lib/elementary/efl_ui_collection.c +++ b/src/lib/elementary/efl_ui_collection.c @@ -438,6 +438,7 @@ _efl_ui_collection_efl_object_invalidate(Eo *obj, Efl_Ui_Collection_Data *pd EIN while(pd->items) efl_del(pd->items->data); + // pan is given to edje, which reparents it, which forces us to manually deleting it efl_del(pd->pan); efl_invalidate(efl_super(obj, MY_CLASS)); diff --git a/src/lib/elementary/efl_ui_collection_view.c b/src/lib/elementary/efl_ui_collection_view.c index acde9d6..308268d 100644 --- a/src/lib/elementary/efl_ui_collection_view.c +++ b/src/lib/elementary/efl_ui_collection_view.c @@ -2072,6 +2072,7 @@ _efl_ui_collection_view_efl_object_invalidate(Eo *obj, _all_cleanup(obj, pd); + //pd pan is given to edje, which reparents it, which forces us to manually deleting it if (pd->pan) efl_del(pd->pan); diff --git a/src/lib/elementary/efl_ui_scroller.c b/src/lib/elementary/efl_ui_scroller.c index e7c947f..c260f35 100644 --- a/src/lib/elementary/efl_ui_scroller.c +++ b/src/lib/elementary/efl_ui_scroller.c @@ -331,6 +331,7 @@ _efl_ui_scroller_efl_object_finalize(Eo *obj, EOLIAN static void _efl_ui_scroller_efl_object_invalidate(Eo *obj, Efl_Ui_Scroller_Data *pd) { + // pan is given to edje, which reparents it, which forces us to manually deleting it efl_event_callback_del(pd->pan_obj, EFL_GFX_ENTITY_EVENT_SIZE_CHANGED, _efl_ui_scroller_pan_resized_cb, obj); efl_del(pd->pan_obj); -- 2.7.4