summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-11-21 12:21:45 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-11-21 12:21:45 +0900
commita3387375dbfeaf4605d15bfa56bb4cbda2febf3b (patch)
tree01b8ade81f29689be9127f28b0d7d4cc6556aae3
parentfb1fda29de70bfdd26309d1ad4daa00bea160d8a (diff)
test_genlist: Add elm_genlist_item_subitems_get sample.
-rw-r--r--src/bin/test_genlist.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index 1bd3a8fcc..9fd673740 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -1319,6 +1319,17 @@ static void
1319gl4_con(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) 1319gl4_con(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
1320{ 1320{
1321 Elm_Object_Item *glit = event_info; 1321 Elm_Object_Item *glit = event_info;
1322 const Eina_List *list = NULL, *l = NULL;
1323 Elm_Object_Item *it = NULL;
1324
1325 printf("\n");
1326
1327 list = elm_genlist_item_subitems_get(glit);
1328 EINA_LIST_FOREACH(list, l, it)
1329 {
1330 printf("sub item: %p %s\n", it, elm_object_item_text_get(it));
1331 }
1332
1322 elm_genlist_item_subitems_clear(glit); 1333 elm_genlist_item_subitems_clear(glit);
1323} 1334}
1324 1335