elementary: add elm_index_active_get
authoryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 27 May 2011 17:21:18 +0000 (17:21 +0000)
committeryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 27 May 2011 17:21:18 +0000 (17:21 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@59755 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_index.c

index c700efe..0eeaa96 100644 (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
  */
@@ -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.