From fb379fb7e0f5efa3263d5cc0597fcbcb6cea9505 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 6 Mar 2012 17:57:20 +0000 Subject: [PATCH] fix changed object_tree_focus api to make sense SVN revision: 68843 --- src/lib/elm_focus.h | 14 +++++++------- src/lib/elm_main.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/elm_focus.h b/src/lib/elm_focus.h index aa29d11..5afd697 100644 --- a/src/lib/elm_focus.h +++ b/src/lib/elm_focus.h @@ -177,12 +177,12 @@ EAPI void elm_object_focus_custom_chain_prepend(Evas_Object *obj EAPI void elm_object_focus_next(Evas_Object *obj, Elm_Focus_Direction dir); /** - * Make the elementary object and its children to be unfocusable - * (or focusable). + * Make the elementary object and its children to be focusable + * (or unfocusable). * * @param obj The Elementary object to operate on - * @param unfocusable @c EINA_TRUE for unfocusable, - * @c EINA_FALSE for focusable. + * @param focusable @c EINA_TRUE for focusable, + * @c EINA_FALSE for unfocusable. * * This sets whether the object @p obj and its children objects * are able to take focus or not. If the tree is set as unfocusable, @@ -197,13 +197,13 @@ EAPI void elm_object_focus_next(Evas_Object *obj, Elm_Focus_Dire * @ingroup Focus * */ -EAPI void elm_object_tree_focus_allow_set(Evas_Object *obj, Eina_Bool unfocusable); +EAPI void elm_object_tree_focus_allow_set(Evas_Object *obj, Eina_Bool focusable); /** - * Get whether an Elementary object and its children are unfocusable or not. + * Get whether an Elementary object and its children are focusable or not. * * @param obj The Elementary object to get the information from - * @return @c EINA_TRUE, if the tree is unfocusable, + * @return @c EINA_TRUE, if the tree is focusable, * @c EINA_FALSE if not (and on errors). * * @see elm_object_tree_focus_allow_set() diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index 1c8a102..2726807 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -1179,10 +1179,10 @@ elm_object_tree_unfocusable_get(const Evas_Object *obj) EAPI void elm_object_tree_focus_allow_set(Evas_Object *obj, - Eina_Bool tree_unfocusable) + Eina_Bool tree_focusable) { EINA_SAFETY_ON_NULL_RETURN(obj); - elm_widget_tree_unfocusable_set(obj, tree_unfocusable); + elm_widget_tree_unfocusable_set(obj, !tree_focusable); } EAPI Eina_Bool -- 2.7.4