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:
Jaehyun Cho 2018-10-04 16:50:21 +09:00
parent 038346dce0
commit d03d29f7a2
1 changed files with 2 additions and 1 deletions

View File

@ -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