summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2016-04-10 14:55:05 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2016-04-10 15:23:13 +0300
commit9936b92ce3305339756f42333eb19a580a585e1a (patch)
treed09c2a8b8e61158c23d7a1a0f216e5a097c568cc
parent3e02f6fd4c8047856c828420d5709b11e8176a0a (diff)
CtxPopup: fix auto-hide property setting
Set and get functions are inconsistent one with the other. When set function is used with a certain value, one expects the get function to return this value.
-rw-r--r--src/lib/elementary/elc_ctxpopup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c
index 89bbefae0d..0faeec6ed4 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -1330,7 +1330,6 @@ _elm_ctxpopup_dismiss(Eo *obj, Elm_Ctxpopup_Data *sd)
1330EOLIAN static void 1330EOLIAN static void
1331_elm_ctxpopup_auto_hide_disabled_set(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd, Eina_Bool disabled) 1331_elm_ctxpopup_auto_hide_disabled_set(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd, Eina_Bool disabled)
1332{ 1332{
1333 disabled = !!disabled;
1334 if (sd->auto_hide == !disabled) return; 1333 if (sd->auto_hide == !disabled) return;
1335 sd->auto_hide = !disabled; 1334 sd->auto_hide = !disabled;
1336} 1335}
@@ -1338,7 +1337,7 @@ _elm_ctxpopup_auto_hide_disabled_set(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd,
1338EOLIAN static Eina_Bool 1337EOLIAN static Eina_Bool
1339_elm_ctxpopup_auto_hide_disabled_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd) 1338_elm_ctxpopup_auto_hide_disabled_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd)
1340{ 1339{
1341 return sd->auto_hide; 1340 return !sd->auto_hide;
1342} 1341}
1343 1342
1344EOLIAN static void 1343EOLIAN static void