summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVaibhav Gupta <g.vaibhav1@samsung.com>2015-08-28 20:03:35 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-08-28 20:03:35 +0900
commitb75c194e6a08ca5d9e66d41bf801269526686b74 (patch)
tree30288338151a739025917a26607739d8fead7985
parentf18c1dbcb482d97421e88b806ab3f74f551f4aea (diff)
Genlist: Dont select first item if its DISPLAY_ONLY
Summary: Updated genlist to select first item which is not in DISPLAY_ONLY mode @fix Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com> Test Plan: Following is the test to verify: 1. Create a genlist 2. Make 1st item as ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY 3. Now bring the focus to genlist by key down 4. It should bring focus on 2nd item and not 1st. Reviewers: raster, Hermet, SanghyeonLee, singh.amitesh Subscribers: sachin.dev Differential Revision: https://phab.enlightenment.org/D2957
-rw-r--r--src/lib/elm_genlist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 49afbd8c2..c27f429a8 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -3204,6 +3204,14 @@ _elm_genlist_elm_widget_on_focus(Eo *obj, Elm_Genlist_Data *sd)
3204 eo_it = elm_genlist_first_item_get(obj); 3204 eo_it = elm_genlist_first_item_get(obj);
3205 is_sel = EINA_TRUE; 3205 is_sel = EINA_TRUE;
3206 } 3206 }
3207
3208 while (eo_it)
3209 {
3210 ELM_GENLIST_ITEM_DATA_GET(eo_it, it);
3211 if ((!_is_no_select(it)) && (!elm_object_item_disabled_get(eo_it)))
3212 break;
3213 eo_it = EO_OBJ(ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->next));
3214 }
3207 3215
3208 if (eo_it) 3216 if (eo_it)
3209 { 3217 {