From 22e94df0f7b7e29725b685e6b0d541875d062d1b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Wed, 5 Feb 2014 20:35:44 +0900 Subject: [PATCH] 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. --- src/bin/edje/edje_cc_handlers.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) Eina_Stringshare *name; char *token, *code; Eina_Bool valid = EINA_TRUE; + Edje_Part_Collection *pc; + + static int part_key = 0; static const char *allowed_name_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHJIKLMNOPQRSTUVWXYZ0123456789_"; @@ -7337,6 +7340,8 @@ st_collections_group_parts_part_description_text_filter(void) ed->text.filter.str = parse_str(0); if (!ed->text.filter.str) return; + pc = eina_list_data_get(eina_list_last(edje_collections)); + // Parse list of buffers that have a source // note: does not support comments code = strdup(ed->text.filter.str); @@ -7383,6 +7388,7 @@ st_collections_group_parts_part_description_text_filter(void) name = eina_stringshare_add(token); sources = eina_list_append(sources, name); + data_queue_part_lookup(pc, name, &part_key); } } free(code);