edje_cc error message for description with missing state is now useful

This commit is contained in:
Mike Blumenkrantz 2014-03-21 15:35:08 -04:00
parent fa14af1afb
commit 79a6653f59
1 changed files with 7 additions and 3 deletions

View File

@ -398,9 +398,13 @@ check_packed_items(Edje_Part_Collection *pc, Edje_Part *ep, Eet_File *ef)
static void
check_nameless_state(Edje_Part_Collection *pc, Edje_Part *ep, Edje_Part_Description_Common *ed, Eet_File *ef)
{
if (!ed->state.name)
error_and_abort(ef, "Collection %i: description with state missing on part \"%s\"",
pc->id, ep->name);
Edje_Part_Collection_Directory_Entry *de;
if (ed->state.name) return;
de = eina_hash_find(edje_collections_lookup, &pc->id);
error_and_abort(ef, "Group '%s': part \"%s\" has description with missing state",
de->entry, ep->name);
}
static void