elm : fallback orientation_mode_disable_set legacy behavior to get true disabled state as what we set.

current code set the disable EINA_TRUE when disabled,
but once it was set diabled, it never changed EINA_FALSE even we set the orientation_mode_disable as FALSE.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8434
This commit is contained in:
SangHyeon Jade Lee 2019-03-21 08:21:37 +00:00 committed by Marcel Hollerbach
parent ab30ff3f9b
commit 7bb702b0df
1 changed files with 1 additions and 2 deletions

View File

@ -1950,8 +1950,7 @@ elm_object_orientation_mode_disabled_set(Evas_Object *obj, Eina_Bool disabled)
else
{
//legacy behaviour
if (disabled)
efl_key_data_set(obj, "__orientation_mode_disabled", (void*) (intptr_t) EINA_TRUE);
efl_key_data_set(obj, "__orientation_mode_disabled", (void*) (intptr_t) disabled);
}
}