elementary: add elm_index_active_get

SVN revision: 59755
This commit is contained in:
Michael BOUCHAUD 2011-05-27 17:21:18 +00:00
parent eab341cf12
commit efa1c08e88
1 changed files with 18 additions and 1 deletions

View File

@ -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
*/
@ -629,6 +629,23 @@ elm_index_active_set(Evas_Object *obj, Eina_Bool active)
edje_object_signal_emit(wd->base, "elm,state,inactive", "elm");
}
/**
* 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.
*