bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7d2d6c7e1df91aadc776a495d3c44a5256cd56b9

commit 7d2d6c7e1df91aadc776a495d3c44a5256cd56b9
Author: Marcel Hollerbach <[email protected]>
Date:   Fri Mar 9 18:52:42 2018 +0100

    elm_genlist: performe elm_item_focus_set
    
    this means all neccessary fields with last focus and current focused
    item are updated correctly
---
 src/lib/elementary/elm_genlist.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 1c81e6be22..a05aaa0871 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -5815,10 +5815,7 @@ _genlist_element_focused(void *data, const Efl_Event *ev)
 
    if (efl_isa(item, ELM_GENLIST_ITEM_CLASS))
      {
-        _elm_genlist_item_focused(item);
-        _all_items_deselect(pd);
-        elm_genlist_item_selected_set(item, EINA_TRUE);
-        elm_genlist_item_bring_in(item, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
+        elm_object_item_focus_set(item, EINA_TRUE);
      }
 }
 

-- 


Reply via email to