summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>2019-03-21 09:12:38 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-21 10:33:58 +0100
commitb747af5181bc4388240d9e5ccdc4d4505a632cdc (patch)
tree28f772467f2e7bb000ac277eccde929f748738bb
parent7bb702b0df39a2c7347098744410b123e56dab90 (diff)
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.c4
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)
1943EAPI void 1943EAPI void
1944elm_object_orientation_mode_disabled_set(Evas_Object *obj, Eina_Bool disabled) 1944elm_object_orientation_mode_disabled_set(Evas_Object *obj, Eina_Bool disabled)
1945{ 1945{
1946 if (efl_isa(obj, EFL_UI_LAYOUT_CLASS)) 1946 if (efl_isa(obj, EFL_UI_LAYOUT_BASE_CLASS))
1947 { 1947 {
1948 efl_ui_layout_automatic_theme_rotation_set(obj, disabled); 1948 efl_ui_layout_automatic_theme_rotation_set(obj, disabled);
1949 } 1949 }
@@ -1957,7 +1957,7 @@ elm_object_orientation_mode_disabled_set(Evas_Object *obj, Eina_Bool disabled)
1957EAPI Eina_Bool 1957EAPI Eina_Bool
1958elm_object_orientation_mode_disabled_get(const Evas_Object *obj) 1958elm_object_orientation_mode_disabled_get(const Evas_Object *obj)
1959{ 1959{
1960 if (efl_isa(obj, EFL_UI_LAYOUT_CLASS)) 1960 if (efl_isa(obj, EFL_UI_LAYOUT_BASE_CLASS))
1961 { 1961 {
1962 return efl_ui_layout_automatic_theme_rotation_get(obj); 1962 return efl_ui_layout_automatic_theme_rotation_get(obj);
1963 } 1963 }