theme: add DBG() message when style is set to default (fallback)

Summary:
When _elm_theme_set() failed to set given style, it sets style
as "default".
However, setting style to "default" can be unintended behavior,
so developer should have the chance to get to know fallback.

Reviewers: cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Jee-Yong Um 2015-11-23 08:26:52 +01:00 committed by Cedric BAIL
parent f21ebbcf04
commit a5908fc856
1 changed files with 6 additions and 1 deletions

View File

@ -319,7 +319,12 @@ _elm_theme_set(Elm_Theme *th, Evas_Object *o, const char *clas, const char *grou
file = _elm_theme_group_file_find(th, buf2);
if (file)
{
if (edje_object_mmap_set(o, file, buf2)) return EINA_TRUE;
if (edje_object_mmap_set(o, file, buf2))
{
DBG("could not set theme style '%s', fallback to default",
style);
return EINA_TRUE;
}
else
{
DBG("could not set theme group '%s' from file '%s': %s",