summaryrefslogtreecommitdiff
path: root/src/bin/utils.c
diff options
context:
space:
mode:
authorWonguk Jeong <wonguk.jeong@samsung.com>2014-08-13 19:34:57 +0200
committerWonguk Jeong <wonguk.jeong@samsung.com>2014-08-13 19:34:57 +0200
commit8ba6a7313999fe0e32153b8ca9243a12617ac211 (patch)
treec9c913ef799771a3defe8458d2e2723ddee4a693 /src/bin/utils.c
parent2084fb2aa9bbe26cc8fc5f75c951bf5982b61baa (diff)
options: theme preview cursor/selection bug fix
Default theme is used for fallback when we apply theme. But, in the preview, current theme has been used for fallback. Fixes T1535
Diffstat (limited to 'src/bin/utils.c')
-rw-r--r--src/bin/utils.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bin/utils.c b/src/bin/utils.c
index 648f017..c7dd1e0 100644
--- a/src/bin/utils.c
+++ b/src/bin/utils.c
@@ -51,6 +51,23 @@ theme_apply(Evas_Object *edje, const Config *config, const char *group)
51 return EINA_FALSE; 51 return EINA_FALSE;
52} 52}
53 53
54Eina_Bool
55theme_apply_default(Evas_Object *edje, const Config *config, const char *group)
56{
57 const char *errmsg;
58
59 EINA_SAFETY_ON_NULL_RETURN_VAL(edje, EINA_FALSE);
60 EINA_SAFETY_ON_NULL_RETURN_VAL(config, EINA_FALSE);
61 EINA_SAFETY_ON_NULL_RETURN_VAL(group, EINA_FALSE);
62
63 if (edje_object_file_set(edje, config_theme_path_default_get(config), group))
64 return EINA_TRUE;
65
66 errmsg = edje_load_error_str(edje_object_load_error_get(edje));
67 ERR(_("Could not load any theme for group=%s: %s"), group, errmsg);
68 return EINA_FALSE;
69}
70
54void 71void
55theme_reload(Evas_Object *edje) 72theme_reload(Evas_Object *edje)
56{ 73{