woohyun pushed a commit to branch master.

commit 304242c16a3ca1eb1ecdf35d71a8f90e331b8d06
Author: WooHyun Jung <[email protected]>
Date:   Wed Mar 13 14:05:00 2013 +0900

    elementary/list : Fixed a bug in elm_list. Focus_next is needed only when 
access mode is enabled.
---
 ChangeLog          |  3 +++
 NEWS               |  1 +
 src/lib/elm_list.c | 11 ++++++++---
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2ad7bfc..7972347 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1146,3 +1146,6 @@
 
         * Entry: Fixed a bug with text appending.
 
+2013-03-13  WooHyun Jung
+
+        * Fixed a bug in elm_list. Focus_next is needed only when access mode 
is enabled.
diff --git a/NEWS b/NEWS
index 39f1c1b..ce8b37d 100644
--- a/NEWS
+++ b/NEWS
@@ -182,6 +182,7 @@ Fixes:
    * Remove the back button callback if the back button is unset on the 
naviframe.
    * Fixed a bug that naviframe's focus_next didn't work after changing evenry 
item to elm_layout.
    * Entry: Fixed a bug with text appending.
+   * Fixed a bug in elm_list. Focus_next is needed only when access mode is 
enabled.
    
 Removals:
 
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index 8a213cf..673ba76 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -1543,11 +1543,13 @@ _elm_list_smart_focus_next_manager_is(Eo *obj 
EINA_UNUSED, void *_pd EINA_UNUSED
    *ret = EINA_TRUE;
 }
 
+static Eina_Bool _elm_list_smart_focus_next_enable = EINA_FALSE;
+
 static void
 _elm_list_smart_focus_direction_manager_is(Eo *obj EINA_UNUSED, void *_pd 
EINA_UNUSED, va_list *list)
 {
    Eina_Bool *ret = va_arg(*list, Eina_Bool *);
-   *ret = EINA_FALSE;
+   *ret = _elm_list_smart_focus_next_enable;
 }
 static void
 _elm_list_smart_focus_next(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
@@ -1728,12 +1730,12 @@ static void
 _elm_list_smart_access(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
 {
    Elm_List_Smart_Data *sd = _pd;
-   int is_access = va_arg(*list, int);
+   _elm_list_smart_focus_next_enable = va_arg(*list, int);
    Eina_List *elist = NULL;
    Elm_List_Item *it;
 
    EINA_LIST_FOREACH(sd->items, elist, it)
-     _access_widget_item_register(it, is_access);
+     _access_widget_item_register(it, _elm_list_smart_focus_next_enable);
 }
 
 EAPI Evas_Object *
@@ -2523,6 +2525,9 @@ _class_constructor(Eo_Class *klass)
       };
       eo_class_funcs_set(klass, func_desc);
 
+      if (_elm_config->access_mode)
+        _elm_list_smart_focus_next_enable = EINA_TRUE;
+
       evas_smart_legacy_type_register(MY_CLASS_NAME, klass);
 }
 

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar

Reply via email to