jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a428e1e7125f28e41532c659b9e31a8ff0bb5d11

commit a428e1e7125f28e41532c659b9e31a8ff0bb5d11
Author: Taehyub Kim <taehyub....@samsung.com>
Date:   Tue Jun 7 17:19:15 2016 +0900

    elm ctxpopup: fix auto_hide mode to work correctly
    
    @fix
    
    Summary: fixx auto_hide mode to work correctly
    
    Test Plan:
    1. launch elementary_test - ctxpopup
    2. click normal ctxpopup and auto_hide ctxpopup sample
    3. check the auto_hide function whether it is work well or not
    
    Reviewers: Jaehyun_Cho, raster, jpeg, cedric, singh.amitesh, DaveMDS, Hermet
    
    Reviewed By: DaveMDS
    
    Differential Revision: https://phab.enlightenment.org/D3967
---
 src/bin/elementary/test_ctxpopup.c | 1 +
 src/lib/elementary/elc_ctxpopup.c  | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/elementary/test_ctxpopup.c 
b/src/bin/elementary/test_ctxpopup.c
index 27e5376..fbc9042 100644
--- a/src/bin/elementary/test_ctxpopup.c
+++ b/src/bin/elementary/test_ctxpopup.c
@@ -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 *
diff --git a/src/lib/elementary/elc_ctxpopup.c 
b/src/lib/elementary/elc_ctxpopup.c
index 3ef52c5..2cfc15c 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -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

-- 


Reply via email to