home and end keys now actually SELECT the first/last genlist items instead of just...
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 25 Feb 2012 11:53:35 +0000 (11:53 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 25 Feb 2012 11:53:35 +0000 (11:53 +0000)
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

src/lib/elm_genlist.c

index 792a7e9..afaf28b 100644 (file)
@@ -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;
      }