From: bdilly Date: Wed, 25 May 2011 14:36:55 +0000 (+0000) Subject: Elementary grid: fix focus_next_hook X-Git-Tag: REL_F_I9500_20120323_1~17^2~2691 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e791956ce78a16c3aa7c0f1c8721036d1bcb3373;p=framework%2Fuifw%2Felementary.git 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 --- 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);