summaryrefslogtreecommitdiff
path: root/src/lib/elm_toolbar.c
diff options
context:
space:
mode:
authorJaehwan Kim <jae.hwan.kim@samsung.com>2015-09-15 19:41:51 +0900
committerJaehwan Kim <jae.hwan.kim@samsung.com>2015-09-15 19:53:23 +0900
commit431492ec497eeaa130f5c2da27ce7a4c7eefe7f9 (patch)
tree1235a45c72f1d295de173db3fb2ff3545dfcb9d4 /src/lib/elm_toolbar.c
parentf3844dcef81ac4c6a74513469d21040169002253 (diff)
focus: add the APIs to set the focus next about item.
Add elm_object_focus_next_item_set/get, elm_object_item_focus_next_object_set/get and elm_object_item_focus_next_item_set/get. If the item and object is set at the same time, the item is preference to object when the focus moves. This feature is implemented about gengrid. It will be implemented about ohter widgets. @feature
Diffstat (limited to 'src/lib/elm_toolbar.c')
-rw-r--r--src/lib/elm_toolbar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index 163bd314e..708f32f1d 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -742,13 +742,13 @@ _elm_toolbar_nearest_visible_item_get(Evas_Object *obj, Elm_Object_Item *eo_it)
742} 742}
743 743
744EOLIAN static Eina_Bool 744EOLIAN static Eina_Bool
745_elm_toolbar_elm_widget_on_focus(Eo *obj, Elm_Toolbar_Data *sd) 745_elm_toolbar_elm_widget_on_focus(Eo *obj, Elm_Toolbar_Data *sd, Elm_Object_Item *item EINA_UNUSED)
746{ 746{
747 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE); 747 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
748 Eina_Bool int_ret = EINA_FALSE; 748 Eina_Bool int_ret = EINA_FALSE;
749 Elm_Object_Item *eo_it = NULL; 749 Elm_Object_Item *eo_it = NULL;
750 750
751 eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_on_focus()); 751 eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_on_focus(NULL));
752 if (!int_ret) return EINA_FALSE; 752 if (!int_ret) return EINA_FALSE;
753 if (!sd->items) return EINA_FALSE; 753 if (!sd->items) return EINA_FALSE;
754 754
@@ -2854,7 +2854,7 @@ _elm_toolbar_elm_widget_focus_next_manager_is(Eo *obj EINA_UNUSED, Elm_Toolbar_D
2854} 2854}
2855 2855
2856EOLIAN static Eina_Bool 2856EOLIAN static Eina_Bool
2857_elm_toolbar_elm_widget_focus_next(Eo *obj, Elm_Toolbar_Data *sd, Elm_Focus_Direction dir, Evas_Object **next) 2857_elm_toolbar_elm_widget_focus_next(Eo *obj, Elm_Toolbar_Data *sd, Elm_Focus_Direction dir, Evas_Object **next, Elm_Object_Item **next_item)
2858{ 2858{
2859 Eina_List *items = NULL; 2859 Eina_List *items = NULL;
2860 Eina_List *list; 2860 Eina_List *list;
@@ -2875,7 +2875,7 @@ _elm_toolbar_elm_widget_focus_next(Eo *obj, Elm_Toolbar_Data *sd, Elm_Focus_Dire
2875 } 2875 }
2876 2876
2877 return elm_widget_focus_list_next_get 2877 return elm_widget_focus_list_next_get
2878 (obj, items, eina_list_data_get, dir, next); 2878 (obj, items, eina_list_data_get, dir, next, next_item);
2879} 2879}
2880 2880
2881static void 2881static void