nikawhite pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=1955c96144ef29b81fe2442d4b8c9d0e4f24144b

commit 1955c96144ef29b81fe2442d4b8c9d0e4f24144b
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Mon Sep 14 15:25:36 2015 +0000

    Ctxpopup: dismiss ctxpopup after the candidate chosen.
    
    Summary:
    Add the elm_ctxpopup_dismiss call inside the
    candidate select callback function.
    Delete unused function ctxpopup_candidate_selected_cb.
    
    Test Plan:
    change  rel1.to param using candidate list.
    After select candidate - ctxpopup should be dismissed.
    
    Reviewers: Hermet
    
    Differential Revision: https://phab.enlightenment.org/D3043
---
 src/lib/ctxpopup.c   | 1 +
 src/lib/edc_editor.c | 7 -------
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/lib/ctxpopup.c b/src/lib/ctxpopup.c
index d507d70..7330d32 100644
--- a/src/lib/ctxpopup.c
+++ b/src/lib/ctxpopup.c
@@ -37,6 +37,7 @@ ctxpopup_it_cb(void *data, Evas_Object *obj, void *event_info)
             ctxdata->attr->prepend_str, text, ctxdata->attr->append_str);
 
    ctxdata->changed_cb(ctxdata->data, obj, ctxdata->candidate);
+   elm_ctxpopup_dismiss(obj);
 }
 
 static void
diff --git a/src/lib/edc_editor.c b/src/lib/edc_editor.c
index 770ff00..a6beb09 100644
--- a/src/lib/edc_editor.c
+++ b/src/lib/edc_editor.c
@@ -335,13 +335,6 @@ ctxpopup_candidate_dismiss_cb(void *data, Evas_Object *obj,
 }
 
 static void
-ctxpopup_candidate_selected_cb(void *data, Evas_Object *obj, void *event_info)
-{
-   edit_data *ed = data;
-   elm_ctxpopup_dismiss(obj);
-}
-
-static void
 ctxpopup_candidate_changed_cb(void *data, Evas_Object *obj, void *event_info)
 {
    edit_data *ed = data;

-- 


Reply via email to