From e791956ce78a16c3aa7c0f1c8721036d1bcb3373 Mon Sep 17 00:00:00 2001 From: bdilly Date: Wed, 25 May 2011 14:36:55 +0000 Subject: [PATCH] Elementary grid: fix focus_next_hook I supposed it was c&p from elm_table and it was trying to access a wrong widget data member. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@59670 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_grid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_grid.c b/src/lib/elm_grid.c index d5cacbb..5303dd8 100644 --- a/src/lib/elm_grid.c +++ b/src/lib/elm_grid.c @@ -35,14 +35,14 @@ _del_hook(Evas_Object *obj) } static Eina_Bool -_elm_table_focus_next_hook(const Evas_Object *obj, Elm_Focus_Direction dir, Evas_Object **next) +_elm_grid_focus_next_hook(const Evas_Object *obj, Elm_Focus_Direction dir, Evas_Object **next) { Widget_Data *wd = elm_widget_data_get(obj); const Eina_List *items; void *(*list_data_get) (const Eina_List *list); Eina_List *(*list_free) (Eina_List *list); - if ((!wd) || (!wd->tbl)) + if ((!wd) || (!wd->grd)) return EINA_FALSE; /* Focus chain */ @@ -108,7 +108,7 @@ elm_grid_add(Evas_Object *parent) elm_widget_sub_object_add(parent, obj); elm_widget_data_set(obj, wd); elm_widget_del_hook_set(obj, _del_hook); - elm_widget_focus_next_hook_set(obj, _elm_table_focus_next_hook); + elm_widget_focus_next_hook_set(obj, _elm_grid_focus_next_hook); elm_widget_can_focus_set(obj, EINA_FALSE); elm_widget_theme_hook_set(obj, _theme_hook); -- 2.7.4