summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorMaksym Volodin <m.volodin@samsung.com>2014-12-12 04:20:16 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-12 04:20:21 +0100
commitc501f2ce1117f3a055161f5378da6fbc50c21744 (patch)
treee0ee4a5aa4ca6bea219aa17e004f8759c4636e5d /src/lib/edje
parent4c1b5a5e30d36429ed5b0a08b515811f47dd79b9 (diff)
edje: Edje_Edit - generate alias parameter for 'parts' block.
Summary: add alias parameter to code generation. @feature Reviewers: raster, Hermet, cedric Reviewed By: cedric Subscribers: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1768 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_edit.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 637b6190a1..12d6e51dce 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -10867,6 +10867,8 @@ _edje_generate_source_of_group(Edje *ed, Edje_Part_Collection_Directory_Entry *p
10867 Edje_Part_Collection *pc; 10867 Edje_Part_Collection *pc;
10868 Eina_Bool ret = EINA_TRUE, broadcast; 10868 Eina_Bool ret = EINA_TRUE, broadcast;
10869 Eina_List *alias_list = NULL; 10869 Eina_List *alias_list = NULL;
10870 const char *alias;
10871 Eina_Iterator *it;
10870 10872
10871 obj = edje_edit_object_add(ed->base->evas); 10873 obj = edje_edit_object_add(ed->base->evas);
10872 if (!edje_object_file_set(obj, ed->file->path, group)) return EINA_FALSE; 10874 if (!edje_object_file_set(obj, ed->file->path, group)) return EINA_FALSE;
@@ -10947,6 +10949,17 @@ _edje_generate_source_of_group(Edje *ed, Edje_Part_Collection_Directory_Entry *p
10947 10949
10948 /* Parts */ 10950 /* Parts */
10949 BUF_APPEND(I2"parts {\n"); 10951 BUF_APPEND(I2"parts {\n");
10952 if ((pc->aliased) && (pc->alias))
10953 {
10954 it = eina_hash_iterator_data_new(pc->aliased);
10955 EINA_ITERATOR_FOREACH(it, alias)
10956 BUF_APPENDF(I3"alias: \"%s\" ", alias);
10957 eina_iterator_free(it);
10958 it = eina_hash_iterator_data_new(pc->alias);
10959 EINA_ITERATOR_FOREACH(it, alias)
10960 BUF_APPENDF("\"%s\";\n", alias);
10961 eina_iterator_free(it);
10962 }
10950 for (i = 0; i < pc->parts_count; i++) 10963 for (i = 0; i < pc->parts_count; i++)
10951 { 10964 {
10952 Edje_Part *ep; 10965 Edje_Part *ep;