summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-05 20:35:44 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-07 17:33:18 +0900
commit22e94df0f7b7e29725b685e6b0d541875d062d1b (patch)
treeb2a96727f3a5096940f37212f991d197b6bb823d /src/bin
parent9d821a402a7938e316669d8e04fe673e06b32093 (diff)
Evas filters: Quick check for existing part name
We just add all buffer source names to the part lookup queue, so that edje_cc will check that the source part exists. The final int key is discarded.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/edje/edje_cc_handlers.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index f3b706b343..eaa88bca1f 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -7318,6 +7318,9 @@ st_collections_group_parts_part_description_text_filter(void)
7318 Eina_Stringshare *name; 7318 Eina_Stringshare *name;
7319 char *token, *code; 7319 char *token, *code;
7320 Eina_Bool valid = EINA_TRUE; 7320 Eina_Bool valid = EINA_TRUE;
7321 Edje_Part_Collection *pc;
7322
7323 static int part_key = 0;
7321 7324
7322 static const char *allowed_name_chars = 7325 static const char *allowed_name_chars =
7323 "abcdefghijklmnopqrstuvwxyzABCDEFGHJIKLMNOPQRSTUVWXYZ0123456789_"; 7326 "abcdefghijklmnopqrstuvwxyzABCDEFGHJIKLMNOPQRSTUVWXYZ0123456789_";
@@ -7337,6 +7340,8 @@ st_collections_group_parts_part_description_text_filter(void)
7337 ed->text.filter.str = parse_str(0); 7340 ed->text.filter.str = parse_str(0);
7338 if (!ed->text.filter.str) return; 7341 if (!ed->text.filter.str) return;
7339 7342
7343 pc = eina_list_data_get(eina_list_last(edje_collections));
7344
7340 // Parse list of buffers that have a source 7345 // Parse list of buffers that have a source
7341 // note: does not support comments 7346 // note: does not support comments
7342 code = strdup(ed->text.filter.str); 7347 code = strdup(ed->text.filter.str);
@@ -7383,6 +7388,7 @@ st_collections_group_parts_part_description_text_filter(void)
7383 name = eina_stringshare_add(token); 7388 name = eina_stringshare_add(token);
7384 7389
7385 sources = eina_list_append(sources, name); 7390 sources = eina_list_append(sources, name);
7391 data_queue_part_lookup(pc, name, &part_key);
7386 } 7392 }
7387 } 7393 }
7388 free(code); 7394 free(code);