raster pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=a0c8b41221cf4a34b1f5e9d05ce61cc922635287
commit a0c8b41221cf4a34b1f5e9d05ce61cc922635287 Author: chinmaya <chinmaya@chinmaya-VirtualBox.(none)> Date: Mon May 26 15:52:07 2014 +0900 Genlist: On focus_on_selection mode, the focus should set on item content objects of item type ELM_GENLIST_ITEM_TREE. Summary: On focus_on_selection set, the focus set on genlist item of type ELM_GENLIST_ITEM_TREE rather than on item content objects. Test Plan: elementary_test -to "genlist focus" Reviewers: seoz, eagleeye, SanghyeonLee, raster Reviewed By: raster CC: seoz Differential Revision: https://phab.enlightenment.org/D899 --- src/lib/elm_genlist.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 67f3749..880b664 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1738,6 +1738,17 @@ _item_realize(Elm_Gen_Item *it, } + if (it->item->type == ELM_GENLIST_ITEM_TREE) + { + Evas_Object* t_eobj; + Eina_List* tl; + EINA_LIST_FOREACH(it->content_objs, tl, t_eobj) + if (elm_widget_is(t_eobj) && elm_object_focus_allow_get(t_eobj)) + it->item_focus_chain = eina_list_append + (it->item_focus_chain, t_eobj); + + } + evas_object_smart_callback_call(WIDGET(it), SIG_REALIZED, it); } --