From 9936b92ce3305339756f42333eb19a580a585e1a Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Sun, 10 Apr 2016 14:55:05 +0300 Subject: [PATCH] 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. --- src/lib/elementary/elc_ctxpopup.c | 3 +-- 1 file changed, 1 insertion(+), 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) EOLIAN static void _elm_ctxpopup_auto_hide_disabled_set(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd, Eina_Bool disabled) { - disabled = !!disabled; if (sd->auto_hide == !disabled) return; sd->auto_hide = !disabled; } @@ -1338,7 +1337,7 @@ _elm_ctxpopup_auto_hide_disabled_set(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd, EOLIAN static Eina_Bool _elm_ctxpopup_auto_hide_disabled_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd) { - return sd->auto_hide; + return !sd->auto_hide; } EOLIAN static void