From 89e421b32a42654a2a82ec34d1fa8f32dfb903fa Mon Sep 17 00:00:00 2001 From: yoz Date: Fri, 27 May 2011 17:21:18 +0000 Subject: [PATCH] elementary: add elm_index_active_get git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@59755 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_index.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_index.c b/src/lib/elm_index.c index c700efe..0eeaa96 100644 --- a/src/lib/elm_index.c +++ b/src/lib/elm_index.c @@ -606,7 +606,7 @@ elm_index_add(Evas_Object *parent) * Set the active state of the index programatically * * @param obj The index object - * @param active The active starte + * @param active The active state * * @ingroup Index */ @@ -630,6 +630,23 @@ elm_index_active_set(Evas_Object *obj, Eina_Bool active) } /** + * Get the active state of the index programatically + * + * @param obj The index object + * @return The active state + * + * @ingroup Index + */ +EAPI void +elm_index_active_get(Evas_Object *obj) +{ + ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; + Widget_Data *wd = elm_widget_data_get(obj); + if (!wd) return EINA_FALSE; + return wd->active; +} + +/** * Sets the level of the item. * * @param obj The index object. -- 2.7.4