From d03d29f7a298f7468599038f151166738cbf054a Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Thu, 4 Oct 2018 16:50:21 +0900 Subject: [PATCH] elm_theme: fix return value when default style fallback is done To keep backward compatibility, EFL_UI_THEME_APPLY_DEFAULT is returned instead of EFL_UI_THEME_APPLY_SUCCESS if style is not found in theme and default style fallback is done instead. This patch fixes 7353fc1cb85e08eb6e884ed8bbf9a009226069b6 @fix --- src/lib/elementary/elm_theme.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_theme.c b/src/lib/elementary/elm_theme.c index 305f6fe102..a5b1ff4302 100644 --- a/src/lib/elementary/elm_theme.c +++ b/src/lib/elementary/elm_theme.c @@ -358,7 +358,8 @@ _elm_theme_set(Elm_Theme *th, Evas_Object *o, const char *clas, const char *grou if (eina_streq(style, "default")) return EFL_UI_THEME_APPLY_FAILED; // Use the elementary default style. - return _elm_theme_set(th, o, clas, group, "default", is_legacy); + return (EFL_UI_THEME_APPLY_DEFAULT & + _elm_theme_set(th, o, clas, group, "default", is_legacy)); } Eina_Bool