From: discomfitor Date: Sat, 25 Feb 2012 11:53:35 +0000 (+0000) Subject: home and end keys now actually SELECT the first/last genlist items instead of just... X-Git-Tag: REL_F_I9500_20120323_1~17^2~521 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d46f56ed7dfbbc7969d7e371d7c02831ee7edfa;p=framework%2Fuifw%2Felementary.git home and end keys now actually SELECT the first/last genlist items instead of just moving viewport to them this does NOT handle multiselect, since imo calling select callbacks on $TEXAS items would be pretty costly; probably need to job/timer it out or something git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68443 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 792a7e9..afaf28b 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -329,6 +329,7 @@ _event_hook(Evas_Object *obj, { it = elm_genlist_first_item_get(obj); elm_genlist_item_bring_in(it); + elm_genlist_item_selected_set(it, EINA_TRUE); ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; return EINA_TRUE; } @@ -336,6 +337,7 @@ _event_hook(Evas_Object *obj, { it = elm_genlist_last_item_get(obj); elm_genlist_item_bring_in(it); + elm_genlist_item_selected_set(it, EINA_TRUE); ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; return EINA_TRUE; }