gengrid/genlist/list: focus first item if first_item_focus_on_first_focus_in is on
authorJaeun Choi <jaeun12.choi@samsung.com>
Fri, 27 Feb 2015 09:14:20 +0000 (18:14 +0900)
committerJaeun Choi <jaeun12.choi@samsung.com>
Fri, 27 Feb 2015 09:17:37 +0000 (18:17 +0900)
whether focus highlight is enabled or not

@fix

legacy/elementary/src/lib/elm_gengrid.c
legacy/elementary/src/lib/elm_genlist.c
legacy/elementary/src/lib/elm_list.c

index 901e9be..0f41654 100644 (file)
@@ -3132,13 +3132,11 @@ _elm_gengrid_elm_widget_on_focus(Eo *obj, Elm_Gengrid_Data *sd)
           eo_it = sd->last_focused_item;
         else if (sd->last_selected_item)
           eo_it = sd->last_selected_item;
-        else if (_elm_config->first_item_focus_on_first_focus_in &&
-                 elm_widget_focus_highlight_enabled_get(obj))
+        else if (_elm_config->first_item_focus_on_first_focus_in)
           {
              eo_it = elm_gengrid_first_item_get(obj);
              is_sel = EINA_TRUE;
           }
-
         if (eo_it)
           {
              eo_it = _elm_gengrid_nearest_visible_item_get(obj, eo_it);
index 1a4b034..2169d61 100644 (file)
@@ -3087,8 +3087,7 @@ _elm_genlist_elm_widget_on_focus(Eo *obj, Elm_Genlist_Data *sd)
           eo_it = sd->last_focused_item;
         else if (sd->last_selected_item)
           eo_it = sd->last_selected_item;
-        else if (_elm_config->first_item_focus_on_first_focus_in &&
-                 elm_widget_focus_highlight_enabled_get(obj))
+        else if (_elm_config->first_item_focus_on_first_focus_in)
           {
              eo_it = elm_genlist_first_item_get(obj);
              is_sel = EINA_TRUE;
index 71bf207..819c9ba 100644 (file)
@@ -1276,8 +1276,7 @@ _elm_list_elm_widget_on_focus(Eo *obj, Elm_List_Data *sd)
           eo_it = sd->last_focused_item;
         else if (sd->last_selected_item)
           eo_it = sd->last_selected_item;
-        else if (_elm_config->first_item_focus_on_first_focus_in &&
-                 elm_widget_focus_highlight_enabled_get(obj))
+        else if (_elm_config->first_item_focus_on_first_focus_in)
           {
              eo_it = elm_list_first_item_get(obj);
              is_sel = EINA_TRUE;