summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2014-07-17 16:58:36 +0900
committerJaeun Choi <jaeun12.choi@samsung.com>2014-07-18 19:34:13 +0900
commit19c9ae51432093d7d610e3bdae3a0b85737c9e46 (patch)
tree6fe6085433bea38477c0950aaf616fb55987d8e2
parenta1c7f8a36106565196b46de43e5d20d81a0fc348 (diff)
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
-rw-r--r--src/lib/elm_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index 99aad4d78..7695b7f46 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,
2729 } 2729 }
2730 } 2730 }
2731 _item_highlight(item); 2731 _item_highlight(item);
2732 _item_select(item);
2733 elm_object_item_focus_set((Elm_Object_Item *)item, EINA_TRUE); 2732 elm_object_item_focus_set((Elm_Object_Item *)item, EINA_TRUE);
2733 _item_select(item);
2734 } 2734 }
2735 else 2735 else
2736 { 2736 {