From b8ef3aa0d9d82d6689058640a0ece2308197392c Mon Sep 17 00:00:00 2001 From: Jaehwan Kim Date: Wed, 19 Oct 2011 09:41:17 +0000 Subject: [PATCH] From: Jaehwan Kim Subject: [E-devel] [Patch] change rel1.to to default when using group inherit When using group inherit, if rel1.to is set in parent group, we cannot change the part name of rel1.to to default (the default is that dont have the part name) in child group. So I changed edje_cc_out.c. After patching, we can change rel1.to to default by using "". (ex > rel1.to: "";) git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@64171 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/edje_cc_out.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bin/edje_cc_out.c b/src/bin/edje_cc_out.c index dafbde3..a1aa168 100644 --- a/src/bin/edje_cc_out.c +++ b/src/bin/edje_cc_out.c @@ -1277,7 +1277,13 @@ data_queue_part_lookup(Edje_Part_Collection *pc, const char *name, int *dest) if ((pl->pc == pc) && (pl->dest == dest)) { free(pl->name); - pl->name = mem_strdup(name); + if (strlen(name) > 0) + pl->name = mem_strdup(name); + else + { + part_lookups = eina_list_remove(part_lookups, pl); + free(pl); + } return; } } -- 2.7.4