forked from enlightenment/efl
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:
parent
3e02f6fd4c
commit
9936b92ce3
|
@ -1330,7 +1330,6 @@ _elm_ctxpopup_dismiss(Eo *obj, Elm_Ctxpopup_Data *sd)
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_elm_ctxpopup_auto_hide_disabled_set(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd, Eina_Bool disabled)
|
_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;
|
if (sd->auto_hide == !disabled) return;
|
||||||
sd->auto_hide = !disabled;
|
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
|
EOLIAN static Eina_Bool
|
||||||
_elm_ctxpopup_auto_hide_disabled_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd)
|
_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
|
EOLIAN static void
|
||||||
|
|
Loading…
Reference in New Issue