forked from enlightenment/efl
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 7353fc1cb8
@fix
This commit is contained in:
parent
038346dce0
commit
d03d29f7a2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue