edje: add error log message for missing description

Summary:
Developer cannot notice that any description didn't applied due to missing description or typo.
This message will be helpful to make correct the application.

Reviewers: cedric, Hermet, raster

Subscribers: soohye.shin, minkyu, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3783

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
jinwoo.shin 2016-03-10 14:15:13 -08:00 committed by Cedric BAIL
parent 685681c864
commit be8605dc44
1 changed files with 7 additions and 3 deletions

View File

@ -721,9 +721,13 @@ _edje_part_description_apply(Edje *ed, Edje_Real_Part *ep, const char *d1, doubl
epd1 = _edje_part_description_find(ed, ep, d1, v1, EINA_TRUE);
if (!epd1)
epd1 = _edje_get_description_by_orientation(ed, ep->part->default_desc,
&ep->part->default_desc_rtl,
ep->type); /* never NULL */
{
ERR("Cannot find description \"%s\" in part \"%s\" from group \"%s\". Fallback to default description.",
d1, ep->part->name, ed->group);
epd1 = _edje_get_description_by_orientation(ed, ep->part->default_desc,
&ep->part->default_desc_rtl,
ep->type); /* never NULL */
}
if (d2)
epd2 = _edje_part_description_find(ed, ep, d2, v2, EINA_TRUE);