summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVyacheslav Reutskiy <v.reutskiy@samsung.com>2017-03-17 08:59:26 +0200
committerVyacheslav Reutskiy <v.reutskiy@samsung.com>2017-03-17 09:10:13 +0200
commit6723c3b1c3cde31d4ce70606074cac5b91d8974b (patch)
treee4ab1f38f6548d6a723ca00a221957a48d5e7e4b
parent01972e5e2539ae24b5916729e18da5dfb5d1c445 (diff)
gengrid: avoid call select callback twice in mode ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL
If multi select mode is ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL and user code try unselect a item and select another part which not realized select callback calls twice in this case. For avoid this no needs focus newly selected item. @fix
-rw-r--r--src/lib/elementary/elm_gengrid.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c
index 7bedd5d89d..6501025cc4 100644
--- a/src/lib/elementary/elm_gengrid.c
+++ b/src/lib/elementary/elm_gengrid.c
@@ -4405,7 +4405,6 @@ _item_select(Elm_Gen_Item *it)
4405 it->walking++; 4405 it->walking++;
4406 sd->walking++; 4406 sd->walking++;
4407 4407
4408 elm_object_item_focus_set(eo_it, EINA_TRUE);
4409 sd->last_selected_item = eo_it; 4408 sd->last_selected_item = eo_it;
4410 4409
4411 if (it->func.func) it->func.func((void *)it->func.data, WIDGET(it), eo_it); 4410 if (it->func.func) it->func.func((void *)it->func.data, WIDGET(it), eo_it);