From bda33541cfb13c2fb69218b07ab8c920b8f2bee3 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: "";) SVN revision: 64171 --- legacy/edje/src/bin/edje_cc_out.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/legacy/edje/src/bin/edje_cc_out.c b/legacy/edje/src/bin/edje_cc_out.c index dafbde3db0..a1aa168ef8 100644 --- a/legacy/edje/src/bin/edje_cc_out.c +++ b/legacy/edje/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; } }