From c64a3c65d5f3c51dc404edc63144ea4c3bd9441b Mon Sep 17 00:00:00 2001 From: cedric Date: Mon, 6 Jun 2011 13:10:54 +0000 Subject: [PATCH] edje: parent link should be properly set before instantiating sub object. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@59989 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_load.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/edje_load.c b/src/lib/edje_load.c index 847bd3e..898ee7e 100644 --- a/src/lib/edje_load.c +++ b/src/lib/edje_load.c @@ -699,6 +699,11 @@ _edje_object_file_set_internal(Evas_Object *obj, const char *file, const char *g child_obj = edje_object_add(ed->base.evas); group_path = eina_list_append(group_path, group_path_entry); + if (rp->part->type == EDJE_PART_TYPE_GROUP) + { + _edje_real_part_swallow(rp, child_obj); + } + if (!_edje_object_file_set_internal(child_obj, file, source, group_path)) { _edje_thaw(ed); @@ -728,7 +733,6 @@ _edje_object_file_set_internal(Evas_Object *obj, const char *file, const char *g edje_object_signal_callback_add(child_obj, "*", "*", _cb_signal_repeat, obj); if (rp->part->type == EDJE_PART_TYPE_GROUP) { - _edje_real_part_swallow(rp, child_obj); source = NULL; } else -- 2.7.4