Revert "Revert "Revert "Revert "elm ctxpopup: fix auto_hide mode to work correctly""""
authorHermet Park <hermet@hermet.pe.kr>
Tue, 7 Jun 2016 10:50:50 +0000 (19:50 +0900)
committerHermet Park <hermet@hermet.pe.kr>
Tue, 7 Jun 2016 10:50:50 +0000 (19:50 +0900)
This reverts commit 95620c6b60643a2326d73141e64447385c28e6e5.

Revert again, because this obviously fixes a bug...

src/bin/elementary/test_ctxpopup.c
src/lib/elementary/elc_ctxpopup.c

index 27e5376..fbc9042 100644 (file)
@@ -50,6 +50,7 @@ _ctxpopup_item_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev
 {
    printf("ctxpopup item selected: %s\n",
    elm_object_item_text_get(event_info));
+   elm_ctxpopup_dismiss(obj);
 }
 
 static Elm_Object_Item *
index 3ef52c5..2cfc15c 100644 (file)
@@ -938,7 +938,8 @@ _bg_clicked_cb(void *data,
 {
    ELM_CTXPOPUP_DATA_GET(data, sd);
 
-   _hide_signals_emit(data, sd->dir);
+   if (sd->auto_hide)
+     _hide_signals_emit(data, sd->dir);
 }
 
 static void