seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=573e39e606c1a2fea1280fd62ee9cbcd58db812c

commit 573e39e606c1a2fea1280fd62ee9cbcd58db812c
Author: Daniel Juyung Seo <[email protected]>
Date:   Sat Mar 22 18:38:00 2014 +0900

    list/genlist/gengrid: Call item_show not bring_in on focus.
    
    Elm 1.9 does item_show not bring_in so let's keep the consistency. I
    will make this optional later.
---
 src/lib/elm_gengrid.c | 2 +-
 src/lib/elm_genlist.c | 3 +--
 src/lib/elm_list.c    | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index b76dd43..6208492 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -1515,7 +1515,7 @@ _elm_gengrid_item_focused(Elm_Gen_Item *it)
        (elm_widget_item_disabled_get(it)))
      return;
 
-   elm_gengrid_item_bring_in
+   elm_gengrid_item_show
           ((Elm_Object_Item *)it, ELM_GENGRID_ITEM_SCROLLTO_IN);
    sd->focused_item = (Elm_Object_Item *)it;
 
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index a2d3728..7fe91b0 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -2448,8 +2448,7 @@ _elm_genlist_item_focused(Elm_Gen_Item *it)
        (elm_widget_item_disabled_get(it)))
      return;
 
-   elm_genlist_item_bring_in((Elm_Object_Item *)it,
-                             ELM_GENLIST_ITEM_SCROLLTO_IN);
+   elm_genlist_item_show((Elm_Object_Item *)it, ELM_GENLIST_ITEM_SCROLLTO_IN);
    sd->focused_item = (Elm_Object_Item *)it;
 
    if (elm_widget_focus_highlight_enabled_get(obj))
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index f60c315..a422713 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -1016,7 +1016,7 @@ _elm_list_item_focused(Elm_List_Item *it)
    evas_object_geometry_get(VIEW(it), &x, &y, &w, &h);
    evas_object_geometry_get(sd->hit_rect, &sx, &sy, &sw, &sh);
    if ((x < sx) || (y < sy)|| ((x + w) > (sx + sw)) || ((y + h) > (sy + sh)))
-     elm_list_item_bring_in((Elm_Object_Item *)it);
+     elm_list_item_show((Elm_Object_Item *)it);
    sd->focused_item = (Elm_Object_Item *)it;
    if (elm_widget_focus_highlight_enabled_get(WIDGET(it)))
      {

-- 


Reply via email to