diff options
author | SangHyeon Jade Lee <sh10233.lee@samsung.com> | 2019-03-21 09:12:38 +0000 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-03-21 10:33:58 +0100 |
commit | b747af5181bc4388240d9e5ccdc4d4505a632cdc (patch) | |
tree | 28f772467f2e7bb000ac277eccde929f748738bb | |
parent | 7bb702b0df39a2c7347098744410b123e56dab90 (diff) | |
download | efl-b747af5181bc4388240d9e5ccdc4d4505a632cdc.tar.gz |
elm : fix wrong layout class comparing in orientation mode disable
automatic theme lotation is layout base class property which can be applied
layout based widget classes.
currently it only comparing EFL_UI_LAYOUT_CLASS so layout base inherited class
can not be applied this feature properly.
depends D8434
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8436
-rw-r--r-- | src/lib/elementary/elm_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c index f2e2589a01..676f1a9e8a 100644 --- a/src/lib/elementary/elm_main.c +++ b/src/lib/elementary/elm_main.c @@ -1943,7 +1943,7 @@ elm_object_name_find(const Evas_Object *obj, const char *name, int recurse) EAPI void elm_object_orientation_mode_disabled_set(Evas_Object *obj, Eina_Bool disabled) { - if (efl_isa(obj, EFL_UI_LAYOUT_CLASS)) + if (efl_isa(obj, EFL_UI_LAYOUT_BASE_CLASS)) { efl_ui_layout_automatic_theme_rotation_set(obj, disabled); } @@ -1957,7 +1957,7 @@ elm_object_orientation_mode_disabled_set(Evas_Object *obj, Eina_Bool disabled) EAPI Eina_Bool elm_object_orientation_mode_disabled_get(const Evas_Object *obj) { - if (efl_isa(obj, EFL_UI_LAYOUT_CLASS)) + if (efl_isa(obj, EFL_UI_LAYOUT_BASE_CLASS)) { return efl_ui_layout_automatic_theme_rotation_get(obj); } |