eunue pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=19c9ae51432093d7d610e3bdae3a0b85737c9e46

commit 19c9ae51432093d7d610e3bdae3a0b85737c9e46
Author: Jaeun Choi <jaeun12.c...@samsung.com>
Date:   Thu Jul 17 16:58:36 2014 +0900

    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
      {

-- 


Reply via email to