From cf63d2e12c9db5fe7aef11334a10343a24815623 Mon Sep 17 00:00:00 2001 From: seoz Date: Mon, 21 Feb 2011 16:31:32 +0000 Subject: [PATCH] Elementary test_genlist.c: Added display only property to Group Index. This compresses Group Index's height and disables touch events. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@57221 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/test_genlist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c index 39b3a42..86ae5ab 100644 --- a/src/bin/test_genlist.c +++ b/src/bin/test_genlist.c @@ -1470,6 +1470,7 @@ test_genlist8(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in ELM_GENLIST_ITEM_GROUP, gl_sel/* func */, (void *)(long)(i * 10)/* func data */); + elm_genlist_item_display_only_set(git, EINA_TRUE); } else if (git) { @@ -1480,7 +1481,6 @@ test_genlist8(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in gl_sel/* func */, (void *)(long)(i * 10)/* func data */); } - //elm_genlist_item_display_only_set(gli, EINA_TRUE); switch (i) { case 0: @@ -1598,6 +1598,7 @@ test_genlist9(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in git = elm_genlist_item_append(gl, &itc_group, (void *)0/* item data */, NULL/* parent */, ELM_GENLIST_ITEM_GROUP, gl4_sel/* func */, NULL/* func data */); + elm_genlist_item_display_only_set(git, EINA_TRUE); elm_genlist_item_append(gl, &itc1, (void *)1/* item data */, git/* parent */, ELM_GENLIST_ITEM_SUBITEMS, gl4_sel/* func */, NULL/* func data */); @@ -1610,6 +1611,7 @@ test_genlist9(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in git = elm_genlist_item_append(gl, &itc_group, (void *)4/* item data */, NULL/* parent */, ELM_GENLIST_ITEM_GROUP, gl4_sel/* func */, NULL/* func data */); + elm_genlist_item_display_only_set(git, EINA_TRUE); elm_genlist_item_append(gl, &itc1, (void *)5/* item data */, git/* parent */, ELM_GENLIST_ITEM_SUBITEMS, gl4_sel/* func */, NULL/* func data */); -- 2.7.4