summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2015-11-23 08:26:52 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-11-23 08:45:33 +0100
commita21a8181c2fa4f43e17eb30178b386208eb7d9f5 (patch)
treea7aa303b49463c3e516bc94216adff508e499946
parentf48bbb1856590d8d12d34181fab34d9bbec970e1 (diff)
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>
-rw-r--r--src/lib/elm_theme.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/elm_theme.c b/src/lib/elm_theme.c
index 87048fe97..4006bc608 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
319 file = _elm_theme_group_file_find(th, buf2); 319 file = _elm_theme_group_file_find(th, buf2);
320 if (file) 320 if (file)
321 { 321 {
322 if (edje_object_mmap_set(o, file, buf2)) return EINA_TRUE; 322 if (edje_object_mmap_set(o, file, buf2))
323 {
324 DBG("could not set theme style '%s', fallback to default",
325 style);
326 return EINA_TRUE;
327 }
323 else 328 else
324 { 329 {
325 DBG("could not set theme group '%s' from file '%s': %s", 330 DBG("could not set theme group '%s' from file '%s': %s",