eek - compile again.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Feb 2012 07:46:05 +0000 (07:46 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Feb 2012 07:46:05 +0000 (07:46 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68310 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/test_genlist.c

index 8e33dd2..05be910 100644 (file)
@@ -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);