cedric pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=a21a8181c2fa4f43e17eb30178b386208eb7d9f5
commit a21a8181c2fa4f43e17eb30178b386208eb7d9f5 Author: Jee-Yong Um <[email protected]> Date: Mon Nov 23 08:26:52 2015 +0100 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 <[email protected]> --- src/lib/elm_theme.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_theme.c b/src/lib/elm_theme.c index 87048fe..4006bc6 100644 --- a/src/lib/elm_theme.c +++ b/src/lib/elm_theme.c @@ -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", --
