aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-10-01 12:28:32 (GMT)
committerJean-Philippe Andre <jp.andre@samsung.com>2015-10-01 12:45:32 (GMT)
commitad268c1d94b0dd54ce31cb665f0be4c2ed8b4452 (patch)
treeafa8a1bc406ed76aab79958b93defeea29fc18d8
parentEdje: Fix big oopsie in previous commit (diff)
downloadefl-ad268c1d94b0dd54ce31cb665f0be4c2ed8b4452.tar.gz
edje_cc: Check default state as well
Strangely only the other states were checked for errors. Errors include: - no name for state, or "description with missing state" - invalid clip_to Also improve the error message a bit
-rw-r--r--src/bin/edje/edje_cc_out.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 5c79ee8..d8f6d55 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -554,8 +554,10 @@ check_state(Edje_Part_Collection *pc, Edje_Part *ep, Edje_Part_Description_Commo
if (ed->clip_to_id != -1 &&
(pc->parts[ed->clip_to_id]->type != EDJE_PART_TYPE_RECTANGLE) &&
(pc->parts[ed->clip_to_id]->type != EDJE_PART_TYPE_IMAGE))
- error_and_abort(ef, "Collection %i: description.clip_to point to a non RECT/IMAGE part '%s' !",
- pc->id, pc->parts[ed->clip_to_id]->name);
+ error_and_abort(ef, "Collection %i: part: '%s' state: '%s' %g clip_to points to "
+ "a non RECT/IMAGE part '%s'!",
+ pc->id, ep->name, ed->state.name, ed->state.value,
+ pc->parts[ed->clip_to_id]->name);
check_nameless_state(pc, ep, ed, ef);
}
@@ -570,6 +572,7 @@ check_part(Edje_Part_Collection *pc, Edje_Part *ep, Eet_File *ef)
error_and_abort(ef, "Collection %i: default description missing "
"for part \"%s\"", pc->id, ep->name);
+ check_state(pc, ep, ep->default_desc, ef);
for (i = 0; i < ep->other.desc_count; ++i)
check_state(pc, ep, ep->other.desc[i], ef);