discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=625e63399da158d64ccf51a7e73a1ecb1dfd14f7

commit 625e63399da158d64ccf51a7e73a1ecb1dfd14f7
Author: zmike <[email protected]>
Date:   Sat Feb 8 16:02:27 2014 -0500

    +elm_genlist_item_subitems_get()
---
 src/lib/elm_genlist.c        |  9 +++++++++
 src/lib/elm_genlist_common.h | 13 +++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 9683ec2..f9a2436 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -6136,6 +6136,15 @@ elm_genlist_item_subitems_count(const Elm_Object_Item 
*it)
    return eina_list_count(item->item->items);
 }
 
+EAPI const Eina_List *
+elm_genlist_item_subitems_get(const Elm_Object_Item *it)
+{
+   Elm_Gen_Item *item = (Elm_Gen_Item *)it;
+   ELM_GENLIST_ITEM_CHECK_OR_RETURN(it, NULL);
+
+   return item->item->items;
+}
+
 EAPI void
 elm_genlist_item_subitems_clear(Elm_Object_Item *item)
 {
diff --git a/src/lib/elm_genlist_common.h b/src/lib/elm_genlist_common.h
index 8ce4593..069a70b 100644
--- a/src/lib/elm_genlist_common.h
+++ b/src/lib/elm_genlist_common.h
@@ -570,6 +570,19 @@ EAPI Elm_Object_Item             
*elm_genlist_item_parent_get(const Elm_Object_I
  * @ingroup Genlist
  */
 EAPI unsigned int                 elm_genlist_item_subitems_count(const 
Elm_Object_Item *it);
+
+/**
+ * Get the list of subitems of a given item
+ *
+ * @param it The item
+ * @return The list of subitems, @c NULL on error
+ *
+ * This returns the list of subitems that an item possesses. It cannot be 
changed.
+ *
+ * @since 1.9
+ * @ingroup Genlist
+ */
+EAPI const Eina_List             *elm_genlist_item_subitems_get(const 
Elm_Object_Item *it);
 /**
  * Remove all sub-items (children) of the given item
  *

-- 


Reply via email to