elc_ctxpopup: fix auto-hide property setting 62/70662/2
authorTaehyub Kim <taehyub.kim@samsung.com>
Fri, 20 May 2016 04:58:31 +0000 (13:58 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 8 Jun 2016 02:16:33 +0000 (19:16 -0700)
    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

src/lib/elc_ctxpopup.c

index f6ce131..50d4550 100644 (file)
@@ -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