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.
This commit is contained in:
Daniel Zaoui 2016-04-10 14:55:05 +03:00
parent 3e02f6fd4c
commit 9936b92ce3
1 changed files with 1 additions and 2 deletions

View File

@ -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