bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=377311cd6608e4c9e7dc65356f2f90246fffe300

commit 377311cd6608e4c9e7dc65356f2f90246fffe300
Author: Marcel Hollerbach <[email protected]>
Date:   Wed Jun 28 16:06:10 2017 +0200

    elm_gengrid: gengrid never sets the focus objects this is always NULL
---
 src/lib/elementary/elm_gengrid.c | 32 --------------------------------
 1 file changed, 32 deletions(-)

diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c
index 7886e8c80f..f4d920ee02 100644
--- a/src/lib/elementary/elm_gengrid.c
+++ b/src/lib/elementary/elm_gengrid.c
@@ -3432,14 +3432,6 @@ _key_action_move(Evas_Object *obj, const char *params)
         else
           {
              Evas_Object *next = NULL;
-             Elm_Object_Item *next_item = NULL;
-             next_item = elm_object_item_focus_next_item_get(sd->focused_item,
-                                                             ELM_FOCUS_LEFT);
-             if (next_item)
-               {
-                  elm_object_item_focus_set(next_item, EINA_TRUE);
-                  return EINA_TRUE;
-               }
              next = elm_object_item_focus_next_object_get(sd->focused_item,
                                                           ELM_FOCUS_LEFT);
              if (next)
@@ -3514,14 +3506,6 @@ _key_action_move(Evas_Object *obj, const char *params)
         else
           {
              Evas_Object *next = NULL;
-             Elm_Object_Item *next_item = NULL;
-             next_item = elm_object_item_focus_next_item_get(sd->focused_item,
-                                                             ELM_FOCUS_RIGHT);
-             if (next_item)
-               {
-                  elm_object_item_focus_set(next_item, EINA_TRUE);
-                  return EINA_TRUE;
-               }
              next = elm_object_item_focus_next_object_get(sd->focused_item,
                                                           ELM_FOCUS_RIGHT);
              if (next)
@@ -3594,14 +3578,6 @@ _key_action_move(Evas_Object *obj, const char *params)
         else
           {
              Evas_Object *next = NULL;
-             Elm_Object_Item *next_item = NULL;
-             next_item = elm_object_item_focus_next_item_get(sd->focused_item,
-                                                             ELM_FOCUS_UP);
-             if (next_item)
-               {
-                  elm_object_item_focus_set(next_item, EINA_TRUE);
-                  return EINA_TRUE;
-               }
              next = elm_object_item_focus_next_object_get(sd->focused_item,
                                                           ELM_FOCUS_UP);
              if (next)
@@ -3658,14 +3634,6 @@ _key_action_move(Evas_Object *obj, const char *params)
         else
           {
              Evas_Object *next = NULL;
-             Elm_Object_Item *next_item = NULL;
-             next_item = elm_object_item_focus_next_item_get(sd->focused_item,
-                                                             ELM_FOCUS_DOWN);
-             if (next_item)
-               {
-                  elm_object_item_focus_set(next_item, EINA_TRUE);
-                  return EINA_TRUE;
-               }
              next = elm_object_item_focus_next_object_get(sd->focused_item,
                                                           ELM_FOCUS_DOWN);
              if (next)

-- 


Reply via email to