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 <cedric@osg.samsung.com>
This commit is contained in:
Sungtaek Hong 2016-06-08 14:06:33 -07:00 committed by Cedric BAIL
parent 32d1f4b2e5
commit 0023efb420
1 changed files with 2 additions and 0 deletions

View 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)