From 71c545545aec365eb2d151726ded00af5ecdb81e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 17 Oct 2013 10:07:23 +0100 Subject: [PATCH] edje should probably unswallow objects when they get deleted externally to avoid issues later on? --- src/lib/edje/edje_util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c index c571c76..d4f093f 100644 --- a/src/lib/edje/edje_util.c +++ b/src/lib/edje/edje_util.c @@ -6267,6 +6267,7 @@ _edje_object_part_swallow_free_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, E Edje_User_Defined *eud; Eina_List *l; Edje *ed; + Edje_Real_Part *rp; ed = evas_object_data_get(obj, ".edje"); @@ -6276,6 +6277,9 @@ _edje_object_part_swallow_free_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, E _edje_user_definition_free(eud); break; } + rp = evas_object_data_get(obj, "\377 edje.swallowing_part"); + if (rp) + edje_object_part_unswallow(ed->obj, obj); return; } -- 2.7.4