forked from enlightenment/efl
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
This commit is contained in:
parent
7bb702b0df
commit
b747af5181
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue