elmentary: trigger selected event when mouse is up in index.
authorSungtaek Hong <sth253.hong@samsung.com>
Wed, 8 Jun 2016 21:06:33 +0000 (14:06 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 8 Jun 2016 21:06:36 +0000 (14:06 -0700)
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 <cedric@osg.samsung.com>
src/lib/elementary/elm_index.c

index 1344bd2..f7a4ab2 100644 (file)
@@ -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)