From 44f33f1e4c4e0d35f9353ee96aff44d6490a431e Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Wed, 27 Sep 2017 01:46:26 +0200 Subject: [PATCH] elm_table: remove old api! --- src/lib/elementary/elm_table.c | 84 ----------------------------------------- src/lib/elementary/elm_table.eo | 4 -- 2 files changed, 88 deletions(-) diff --git a/src/lib/elementary/elm_table.c b/src/lib/elementary/elm_table.c index 30d5788..d9d16bb 100644 --- a/src/lib/elementary/elm_table.c +++ b/src/lib/elementary/elm_table.c @@ -23,90 +23,6 @@ _focus_order_flush(Eo *obj) efl_ui_focus_manager_calc_update_order(wpd->focus.manager, obj, order); } -EOLIAN static Eina_Bool -_elm_table_elm_widget_focus_next_manager_is(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED) -{ - return EINA_TRUE; -} - -EOLIAN static Eina_Bool -_elm_table_elm_widget_focus_next(Eo *obj, void *_pd EINA_UNUSED, Elm_Focus_Direction dir, Evas_Object **next, Elm_Object_Item **next_item) -{ - Eina_Bool int_ret; - - const Eina_List *items; - Eina_List *(*list_free)(Eina_List *list); - void *(*list_data_get)(const Eina_List *list); - - ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE); - - /* Focus chain */ - /* TODO: Change this to use other chain */ - if ((items = elm_obj_widget_focus_custom_chain_get(obj))) - { - list_data_get = eina_list_data_get; - list_free = NULL; - } - else - { - items = evas_object_table_children_get - (wd->resize_obj); - list_data_get = eina_list_data_get; - list_free = eina_list_free; - - if (!items) return EINA_FALSE; - } - - int_ret = elm_widget_focus_list_next_get(obj, items, list_data_get, dir, next, next_item); - - if (list_free) list_free((Eina_List *)items); - - return int_ret; -} - -EOLIAN static Eina_Bool -_elm_table_elm_widget_focus_direction_manager_is(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED) -{ - return EINA_TRUE; -} - -EOLIAN static Eina_Bool -_elm_table_elm_widget_focus_direction(Eo *obj, void *_pd EINA_UNUSED, const Evas_Object *base, double degree, Evas_Object **direction, Elm_Object_Item **direction_item, double *weight) -{ - Eina_Bool int_ret; - - const Eina_List *items; - Eina_List *(*list_free)(Eina_List *list); - void *(*list_data_get)(const Eina_List *list); - - ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE); - - /* Focus chain */ - /* TODO: Change this to use other chain */ - if ((items = elm_obj_widget_focus_custom_chain_get(obj))) - { - list_data_get = eina_list_data_get; - list_free = NULL; - } - else - { - items = evas_object_table_children_get - (wd->resize_obj); - list_data_get = eina_list_data_get; - list_free = eina_list_free; - - if (!items) return EINA_FALSE; - } - - int_ret = elm_widget_focus_list_direction_get - (obj, base, items, list_data_get, degree, direction, direction_item, weight); - - if (list_free) - list_free((Eina_List *)items); - - return int_ret; -} - static void _mirrored_set(Evas_Object *obj, Eina_Bool rtl) { diff --git a/src/lib/elementary/elm_table.eo b/src/lib/elementary/elm_table.eo index 0c0536b..92a0c85 100644 --- a/src/lib/elementary/elm_table.eo +++ b/src/lib/elementary/elm_table.eo @@ -121,10 +121,6 @@ class Elm.Table (Elm.Widget) class.constructor; Efl.Object.constructor; Efl.Canvas.Group.group_calculate; - Elm.Widget.focus_direction; - Elm.Widget.focus_next_manager_is; - Elm.Widget.focus_next; - Elm.Widget.focus_direction_manager_is; Elm.Widget.theme_apply; Elm.Widget.widget_sub_object_del; Elm.Widget.focus_state_apply; -- 2.7.4