From beb4105d96e67d1049a7a0b3cb147e3c1655541e Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo 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. SVN revision: 57221 --- legacy/elementary/src/bin/test_genlist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/bin/test_genlist.c b/legacy/elementary/src/bin/test_genlist.c index 39b3a420a7..86ae5ab2c3 100644 --- a/legacy/elementary/src/bin/test_genlist.c +++ b/legacy/elementary/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 */);