summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>2019-03-21 08:21:37 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-21 10:33:57 +0100
commit7bb702b0df39a2c7347098744410b123e56dab90 (patch)
treecd5359d9896846ca46eada6d18c04150184b896f
parentab30ff3f9bd8b82c5df9c97e0092d18221f0b7dc (diff)
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
-rw-r--r--src/lib/elementary/elm_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index bd0f0b7d38..f2e2589a01 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -1950,8 +1950,7 @@ elm_object_orientation_mode_disabled_set(Evas_Object *obj, Eina_Bool disabled)
1950 else 1950 else
1951 { 1951 {
1952 //legacy behaviour 1952 //legacy behaviour
1953 if (disabled) 1953 efl_key_data_set(obj, "__orientation_mode_disabled", (void*) (intptr_t) disabled);
1954 efl_key_data_set(obj, "__orientation_mode_disabled", (void*) (intptr_t) EINA_TRUE);
1955 } 1954 }
1956} 1955}
1957 1956