elm : fix wrong layout class comparing in orientation mode disable 78/201978/2
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>
Thu, 21 Mar 2019 09:09:53 +0000 (18:09 +0900)
committerSangHyeon Lee <sh10233.lee@samsung.com>
Thu, 21 Mar 2019 09:45:00 +0000 (09:45 +0000)
Summary:
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

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8436

Change-Id: Iebbf1da76fc2309f16db7e7eabcca0b82e6fe3d8

src/lib/elementary/elm_main.c

index d8531c8..7f5d16f 100644 (file)
@@ -2014,7 +2014,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);
      }
@@ -2028,7 +2028,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);
      }