cedric pushed a commit to branch master.

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

commit 0023efb420ea7cb66354b19628ce561ee937c4d1
Author: Sungtaek Hong <sth253.h...@samsung.com>
Date:   Wed Jun 8 14:06:33 2016 -0700

    elmentary: trigger selected event when mouse is up in index.
    
    Summary:
    - selected callback should be called when the user releases a mouse button
      and selects an item.
    
    Reviewers: cedric, jpeg, Hermet, woohyun
    
    Subscribers: conr2d, cedric, jpeg
    
    Differential Revision: https://phab.enlightenment.org/D4022
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elementary/elm_index.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/elementary/elm_index.c b/src/lib/elementary/elm_index.c
index 1344bd2..f7a4ab2 100644
--- a/src/lib/elementary/elm_index.c
+++ b/src/lib/elementary/elm_index.c
@@ -857,6 +857,8 @@ _on_mouse_up(void *data,
      {
         eo_event_callback_call
           (data, EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, eo_item);
+        eo_event_callback_call
+          (data, EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_item);
         eo_id_item = eo_item;
         ELM_INDEX_ITEM_DATA_GET(eo_id_item, id_item);
         if (id_item->func)

-- 


Reply via email to