summaryrefslogtreecommitdiff
path: root/legacy/edje
diff options
context:
space:
mode:
authorTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-08-11 12:51:41 +0000
committerTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-08-11 12:51:41 +0000
commit3de5ea12d56f5c0476243b303db134d8892b549e (patch)
treeb68af2a10046bfbd03f8c45fddc644b221497d47 /legacy/edje
parent8e66149870b716a5f11ffe4d54656a0949f1d818 (diff)
Code generation for data block
SVN revision: 50995
Diffstat (limited to 'legacy/edje')
-rw-r--r--legacy/edje/src/lib/edje_edit.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/legacy/edje/src/lib/edje_edit.c b/legacy/edje/src/lib/edje_edit.c
index 058162128a..999e94c697 100644
--- a/legacy/edje/src/lib/edje_edit.c
+++ b/legacy/edje/src/lib/edje_edit.c
@@ -5904,25 +5904,26 @@ _edje_generate_source_of_group(Edje *ed, Edje_Part_Collection_Directory_Entry *p
5904 BUF_APPENDF(I2"max: %d %d;\n", w, h); 5904 BUF_APPENDF(I2"max: %d %d;\n", w, h);
5905 5905
5906 /* Data */ 5906 /* Data */
5907 if ((ll = edje_edit_group_data_list_get(obj))) 5907 if (pce->ref->data)
5908 { 5908 {
5909 BUF_APPEND(I2"data {\n"); 5909 Eina_Iterator *it;
5910 Eina_Hash_Tuple *tuple;
5911 BUF_APPEND(I2"data {\n");
5910 5912
5911 EINA_LIST_FOREACH(ll, l, data) 5913 it = eina_hash_iterator_tuple_new(pce->ref->data);
5912 {
5913 const char *value = edje_edit_group_data_value_get(obj, data);
5914 ret &= !!value;
5915 BUF_APPENDF(I3"item: \"%s\" \"%s\";\n", data, value);
5916 }
5917 5914
5918 BUF_APPEND(I2"}\n\n"); 5915 if (!it)
5919 edje_edit_string_list_free(ll); 5916 {
5920 } 5917 ERR("Generating EDC for Group[%s] data.", group);
5918 return EINA_FALSE;
5919 }
5921 5920
5922 if (!ret) 5921 EINA_ITERATOR_FOREACH(it, tuple)
5923 { 5922 BUF_APPENDF(I3"item: \"%s\" \"%s\";\n", (char *)tuple->key,
5924 ERR("Generating EDC for Group[%s] data.", group); 5923 (char *)tuple->data);
5925 return EINA_FALSE; 5924
5925 eina_iterator_free(it);
5926 BUF_APPEND(I2"}\n\n");
5926 } 5927 }
5927 5928
5928 //TODO Support script 5929 //TODO Support script