summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchinmaya <chinmaya@chinmaya-VirtualBox.(none)>2014-05-26 15:52:07 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-26 15:52:07 +0900
commita0c8b41221cf4a34b1f5e9d05ce61cc922635287 (patch)
treeda10e97d7fad47d05923f2000015ae53a73019cf
parenta420f494dc2bb420f0c6851002f3b8e704abd330 (diff)
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
-rw-r--r--src/lib/elm_genlist.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 67f3749ae..880b664d8 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -1738,6 +1738,17 @@ _item_realize(Elm_Gen_Item *it,
1738 1738
1739 } 1739 }
1740 1740
1741 if (it->item->type == ELM_GENLIST_ITEM_TREE)
1742 {
1743 Evas_Object* t_eobj;
1744 Eina_List* tl;
1745 EINA_LIST_FOREACH(it->content_objs, tl, t_eobj)
1746 if (elm_widget_is(t_eobj) && elm_object_focus_allow_get(t_eobj))
1747 it->item_focus_chain = eina_list_append
1748 (it->item_focus_chain, t_eobj);
1749
1750 }
1751
1741 evas_object_smart_callback_call(WIDGET(it), SIG_REALIZED, it); 1752 evas_object_smart_callback_call(WIDGET(it), SIG_REALIZED, it);
1742 } 1753 }
1743 1754