elm gengrid/genlist: Changed 'label_get' to 'text_get' according to the
[framework/uifw/elementary.git] / src / bin / test_index.c
index a0dfc9e..f9f9e47 100644 (file)
@@ -4,7 +4,7 @@
 #endif
 #ifndef ELM_LIB_QUICKLAUNCH
 static Elm_Genlist_Item_Class itci;
-char *gli_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+char *gli_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
 {
    char buf[256];
    int j = (long)data;
@@ -46,7 +46,7 @@ test_index(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
 
    win = elm_win_add(NULL, "index", ELM_WIN_BASIC);
    elm_win_title_set(win, "Index");
-   elm_win_autodel_set(win, 1);
+   elm_win_autodel_set(win, EINA_TRUE);
 
    bg = elm_bg_add(win);
    elm_win_resize_object_add(win, bg);
@@ -65,8 +65,8 @@ test_index(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    evas_object_show(id);
 
    itci.item_style     = "default";
-   itci.func.label_get = gli_label_get;
-   itci.func.icon_get  = NULL;
+   itci.func.text_get = gli_text_get;
+   itci.func.content_get  = NULL;
    itci.func.state_get = NULL;
    itci.func.del       = NULL;
 
@@ -202,8 +202,8 @@ test_index2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
 
    win = elm_win_add(NULL, "sorted-index-list", ELM_WIN_BASIC);
    elm_win_title_set(win, "Sorted Index and List");
-   evas_object_smart_callback_add(win, "delete-request", test_index2_del, gui);
-   elm_win_autodel_set(win, 1);
+   evas_object_smart_callback_add(win, "delete,request", test_index2_del, gui);
+   elm_win_autodel_set(win, EINA_TRUE);
 
    bg = elm_bg_add(win);
    elm_win_resize_object_add(win, bg);