summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-06-29 10:57:40 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2015-06-29 11:00:56 +0530
commit1a1aaec3c9f58c4a7408ccfc3e8a14cc607cfb58 (patch)
treef4b8086fdf28fb595a207957f6d739e23522255a
parentc317dd289ed76f85f085db8b994218cd3f94a700 (diff)
Revert "theme: return false if elm_object_style_set() failed to set requested style."
This reverts commit 76004dfbec84664e253babc5bf576398a5901395. We need to change other code also to accommodate this change. _elm_theme_set should return an enum which tells what failed. enum { THEME_APPLY_FAILED, THEME_DEFAULT_SUCCESS. THEME_APPLY_SUCCESS }; Based on that, we decide what needs to be done. The above code will break the layout theme if incorrect theme are passed. It should be backported to Elm 1.14. @fix
-rw-r--r--src/lib/elm_theme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_theme.c b/src/lib/elm_theme.c
index 1e9a9b048..58b7514c0 100644
--- a/src/lib/elm_theme.c
+++ b/src/lib/elm_theme.c
@@ -319,7 +319,7 @@ _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_FALSE; 322 if (edje_object_mmap_set(o, file, buf2)) return EINA_TRUE;
323 else 323 else
324 { 324 {
325 DBG("could not set theme group '%s' from file '%s': %s", 325 DBG("could not set theme group '%s' from file '%s': %s",