From: yoz Date: Fri, 27 May 2011 17:21:18 +0000 (+0000) Subject: elementary: add elm_index_active_get X-Git-Tag: REL_F_I9500_20120323_1~17^2~2668 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89e421b32a42654a2a82ec34d1fa8f32dfb903fa;p=framework%2Fuifw%2Felementary.git 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 --- 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.