From: Jaehwan Kim <jae.hwan.kim@samsung.com>
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Wed, 19 Oct 2011 09:41:17 +0000 (09:41 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 19 Oct 2011 09:41:17 +0000 (09:41 +0000)
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

index dafbde3..a1aa168 100644 (file)
@@ -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;
           }
      }