From 6ce0f6b4b25d32cc03485d69a5e6795e91efe335 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 --- legacy/elementary/src/lib/elm_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_list.c b/legacy/elementary/src/lib/elm_list.c index 99aad4d787..7695b7f467 100644 --- a/legacy/elementary/src/lib/elm_list.c +++ b/legacy/elementary/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 {