From: Taehyub Kim Date: Fri, 20 May 2016 04:58:31 +0000 (+0900) Subject: elc_ctxpopup: fix auto-hide property setting X-Git-Tag: accepted/tizen/common/20160609.145701~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F70662%2F2;p=platform%2Fupstream%2Felementary.git elc_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. Change-Id: I142ffa6dbce51e7bb63cbbb59836d4781c1f2872 --- diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index f6ce131..50d4550 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -1393,7 +1393,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