elm_index: call selected when mouse is up 33/73633/3
authorSungtaek Hong <sth253.hong@samsung.com>
Thu, 9 Jun 2016 04:05:18 +0000 (13:05 +0900)
committerJaeun Choi <jaeun12.choi@samsung.com>
Fri, 10 Jun 2016 08:10:32 +0000 (01:10 -0700)
 - selected callback should be called when the user
   releases a mouse button and selects an item.

Change-Id: I9bbd5d4a71e7ab9e83c14bebb37472330e796dd7
Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>
origin: upstream

src/lib/elm_index.c

index e26f455..2606d7c 100644 (file)
@@ -867,6 +867,8 @@ _on_mouse_up(void *data,
      {
         eo_do(data, eo_event_callback_call
           (EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, eo_item));
+        eo_do(data, eo_event_callback_call
+          (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)