From 05e9772260ef8eb65d78b2890cea1b7ca2b89294 Mon Sep 17 00:00:00 2001 From: raster Date: Thu, 23 Feb 2012 07:46:05 +0000 Subject: [PATCH] eek - compile again. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68310 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/test_genlist.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c index 8e33dd2..05be910 100644 --- a/src/bin/test_genlist.c +++ b/src/bin/test_genlist.c @@ -2296,6 +2296,11 @@ gl15_normal_mode(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNU elm_genlist_always_select_mode_set(data, EINA_FALSE); } +void gl15_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__) +{ + printf("item deleted.\n"); +} + void test_genlist15(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { @@ -2322,12 +2327,13 @@ test_genlist15(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i evas_object_size_hint_weight_set(gl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_show(gl); - itc15.item_style = "default"; - itc15.func.text_get = gl15_text_get; - itc15.func.content_get = gl15_content_get; - itc15.func.state_get = gl_state_get; - itc15.func.del = gl_del; - itc15.edit_item_style = "edit"; + itc15 = elm_genlist_item_class_new(); + itc15->item_style = "default"; + itc15->func.text_get = gl15_text_get; + itc15->func.content_get = gl15_content_get; + itc15->func.state_get = gl_state_get; + itc15->func.del = gl15_del; + itc15->edit_item_style = "edit"; for (i = 0; i < 100; i++) { @@ -2339,6 +2345,7 @@ test_genlist15(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i gl15_sel/* func */, &(tit[i])/* func data */); } + elm_genlist_item_class_free(itc15); elm_box_pack_end(bx, gl); evas_object_show(bx); -- 2.7.4