seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=234c1bed8ac236c25483c2ae64ff0cfd750a85fd

commit 234c1bed8ac236c25483c2ae64ff0cfd750a85fd
Author: Daniel Juyung Seo <[email protected]>
Date:   Sat Mar 22 18:07:27 2014 +0900

    list: Select the first item when the list widget is just focused first time.
    
    Select the first item if there is no last_focused_item,
     last_selected_item, and if this focus is done by key event.
---
 src/lib/elm_list.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index ea3e0a8..8b9353e 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -1075,7 +1075,8 @@ _elm_list_smart_on_focus(Eo *obj, void *_pd, va_list 
*list)
         else if (sd->last_selected_item)
           _elm_list_item_focused((Elm_List_Item *)sd->last_selected_item);
         else if (!sd->mouse_down)
-          _elm_list_item_focused((Elm_List_Item 
*)eina_list_data_get(sd->items));
+          elm_list_item_selected_set(
+             eina_list_data_get(sd->items), EINA_TRUE);
         _elm_widget_focus_highlight_start(obj);
      }
    else

-- 


Reply via email to