summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2014-02-08 16:02:27 -0500
committerzmike <michael.blumenkrantz@gmail.com>2014-02-08 16:03:25 -0500
commit625e63399da158d64ccf51a7e73a1ecb1dfd14f7 (patch)
tree9682060fb0c053e2b8875c171279a36d49dfa9e9
parent3a6aed8017dbb2dc60df71b45e5e62c26a929ebb (diff)
+elm_genlist_item_subitems_get()
-rw-r--r--src/lib/elm_genlist.c9
-rw-r--r--src/lib/elm_genlist_common.h13
2 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 9683ec2a0..f9a2436f0 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)
6136 return eina_list_count(item->item->items); 6136 return eina_list_count(item->item->items);
6137} 6137}
6138 6138
6139EAPI const Eina_List *
6140elm_genlist_item_subitems_get(const Elm_Object_Item *it)
6141{
6142 Elm_Gen_Item *item = (Elm_Gen_Item *)it;
6143 ELM_GENLIST_ITEM_CHECK_OR_RETURN(it, NULL);
6144
6145 return item->item->items;
6146}
6147
6139EAPI void 6148EAPI void
6140elm_genlist_item_subitems_clear(Elm_Object_Item *item) 6149elm_genlist_item_subitems_clear(Elm_Object_Item *item)
6141{ 6150{
diff --git a/src/lib/elm_genlist_common.h b/src/lib/elm_genlist_common.h
index 8ce45933d..069a70b58 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
570 * @ingroup Genlist 570 * @ingroup Genlist
571 */ 571 */
572EAPI unsigned int elm_genlist_item_subitems_count(const Elm_Object_Item *it); 572EAPI unsigned int elm_genlist_item_subitems_count(const Elm_Object_Item *it);
573
574/**
575 * Get the list of subitems of a given item
576 *
577 * @param it The item
578 * @return The list of subitems, @c NULL on error
579 *
580 * This returns the list of subitems that an item possesses. It cannot be changed.
581 *
582 * @since 1.9
583 * @ingroup Genlist
584 */
585EAPI const Eina_List *elm_genlist_item_subitems_get(const Elm_Object_Item *it);
573/** 586/**
574 * Remove all sub-items (children) of the given item 587 * Remove all sub-items (children) of the given item
575 * 588 *