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.
This commit is contained in:
Jean-Philippe Andre 2014-02-05 20:35:44 +09:00
parent 9d821a402a
commit 22e94df0f7
1 changed files with 6 additions and 0 deletions

View File

@ -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);