From 19c9ae51432093d7d610e3bdae3a0b85737c9e46 Mon Sep 17 00:00:00 2001 From: Jaeun Choi Date: Thu, 17 Jul 2014 16:58:36 +0900 Subject: [PATCH] list: call "selected" callback after set focus to the selected item in current code, when a list item is selected, "selected" callback is called first and then focus is set to the item. this is a problem if another widget, popup for instance, is created on top of the list in the callback function. in such a case, the popup should get focused (not the list item). this patch fixes it by changing the order. @fix --- src/lib/elm_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index 99aad4d..7695b7f 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -2729,8 +2729,8 @@ elm_list_item_selected_set(Elm_Object_Item *it, } } _item_highlight(item); - _item_select(item); elm_object_item_focus_set((Elm_Object_Item *)item, EINA_TRUE); + _item_select(item); } else { -- 2.7.4