help users by showing some debug messages about themes not being found.
If you have problem seeing stuff due theme misses, then use: export EINA_LOG_LEVELS=elementary:4 and you should see some reports of missing groups with files. This helps a lot for genlist and its complex way of naming items :-) SVN revision: 52791
This commit is contained in:
parent
ec9741575f
commit
83586bb0e9
|
@ -223,6 +223,9 @@ elm_layout_file_set(Evas_Object *obj, const char *file, const char *group)
|
|||
if (!wd) return EINA_FALSE;
|
||||
Eina_Bool ret = edje_object_file_set(wd->lay, file, group);
|
||||
if (ret) _request_sizing_eval(wd);
|
||||
else DBG("failed to set edje file '%s', group '%s': %s",
|
||||
file, group,
|
||||
edje_load_error_str(edje_object_load_error_get(wd->lay)));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -139,11 +139,17 @@ _elm_theme_set(Elm_Theme *th, Evas_Object *o, const char *clas, const char *grou
|
|||
{
|
||||
ok = edje_object_file_set(o, file, buf2);
|
||||
if (ok) return 1;
|
||||
else
|
||||
DBG("could not set theme group '%s' from file '%s': %s",
|
||||
buf2, file, edje_load_error_str(edje_object_load_error_get(o)));
|
||||
}
|
||||
snprintf(buf2, sizeof(buf2), "elm/%s/%s/default", clas, group);
|
||||
file = _elm_theme_group_file_find(th, buf2);
|
||||
if (!file) return 0;
|
||||
ok = edje_object_file_set(o, file, buf2);
|
||||
if (!ok)
|
||||
DBG("could not set theme group '%s' from file '%s': %s",
|
||||
buf2, file, edje_load_error_str(edje_object_load_error_get(o)));
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue