From 657dbbdd342379620d89ab513399afe0525231e5 Mon Sep 17 00:00:00 2001 From: Jiyoun Park Date: Tue, 6 Mar 2012 13:28:58 +0000 Subject: [PATCH] remove deprecated funtion related elm_object_focus/unfocus/direction_go SVN revision: 68828 --- src/examples/entry_example.c | 4 ++-- src/examples/general_funcs_example.c | 4 ++-- src/lib/elm_main.c | 23 ----------------------- 3 files changed, 4 insertions(+), 27 deletions(-) diff --git a/src/examples/entry_example.c b/src/examples/entry_example.c index 1f8a038..64842c2 100644 --- a/src/examples/entry_example.c +++ b/src/examples/entry_example.c @@ -34,7 +34,7 @@ static void _edit_buffer_insert(Evas_Object *e, const char *text) { elm_entry_entry_insert(e, text); - elm_object_focus(e); + elm_object_focus_set(e, EINA_TRUE); } static void @@ -575,7 +575,7 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) evas_object_smart_callback_add(win, "delete,request", _win_del_cb, &app); - elm_object_focus(app.edit_buffer); + elm_object_focus_set(app.edit_buffer, EINA_TRUE); evas_object_resize(win, 300, 780); diff --git a/src/examples/general_funcs_example.c b/src/examples/general_funcs_example.c index c4c89e4..b4404d1 100644 --- a/src/examples/general_funcs_example.c +++ b/src/examples/general_funcs_example.c @@ -39,7 +39,7 @@ _btn_focus_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__) { - elm_object_focus(d.btn); + elm_object_focus_set(d.btn, EINA_TRUE); } static void @@ -48,7 +48,7 @@ _btn_unfocus_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__) { - elm_object_unfocus(d.btn); + elm_object_focus_set(d.btn, EINA_FALSE); } static void diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index a7d6ae6..1c8a102 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -1093,20 +1093,6 @@ elm_object_focus_set(Evas_Object *obj, } EAPI void -elm_object_focus(Evas_Object *obj) -{ - EINA_SAFETY_ON_NULL_RETURN(obj); - elm_object_focus_set(obj, EINA_TRUE); -} - -EAPI void -elm_object_unfocus(Evas_Object *obj) -{ - EINA_SAFETY_ON_NULL_RETURN(obj); - elm_object_focus_set(obj, EINA_FALSE); -} - -EAPI void elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) { @@ -1178,15 +1164,6 @@ elm_object_focus_next(Evas_Object *obj, elm_widget_focus_cycle(obj, dir); } -EAPI void -elm_object_focus_direction_go(Evas_Object *obj, - int x, - int y) -{ - EINA_SAFETY_ON_NULL_RETURN(obj); - elm_widget_focus_direction_go(obj, x, y); -} - EINA_DEPRECATED EAPI void elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool unfocusable) -- 2.7.4