Loading

Paste #pltcgfny4

  1. diff --git a/tests/testlistview.c b/tests/testlistview.c
  2. index aad39b5b57..0b18236350 100644
  3. --- a/tests/testlistview.c
  4. +++ b/tests/testlistview.c
  5. @@ -618,7 +618,7 @@ main (int argc, char *argv[])
  6.    gtk_init ();
  7.  
  8.    win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  9. -  gtk_window_set_default_size (GTK_WINDOW (win), 800, 600);
  10. +  gtk_window_set_default_size (GTK_WINDOW (win), 400, 600);
  11.    g_signal_connect (win, "destroy", G_CALLBACK (gtk_main_quit), win);
  12.  
  13.    vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
  14. @@ -632,7 +632,7 @@ main (int argc, char *argv[])
  15.    gtk_search_entry_set_key_capture_widget (GTK_SEARCH_ENTRY (search_entry), sw);
  16.    gtk_container_add (GTK_CONTAINER (vbox), sw);
  17.  
  18. -  listview = gtk_grid_view_new_with_factory (
  19. +  listview = gtk_list_view_new_with_factory (
  20.      gtk_functions_list_item_factory_new (setup_widget,
  21.                                           NULL,
  22.                                           NULL, NULL));
  23. @@ -660,7 +660,7 @@ main (int argc, char *argv[])
  24.    selectionmodel = file_info_selection_new (G_LIST_MODEL (filter));
  25.    g_object_unref (filter);
  26.  
  27. -  gtk_grid_view_set_model (GTK_GRID_VIEW (listview), G_LIST_MODEL (selectionmodel));
  28. +  gtk_list_view_set_model (GTK_LIST_VIEW (listview), G_LIST_MODEL (selectionmodel));
  29.  
  30.    statusbar = gtk_statusbar_new ();
  31.    gtk_widget_add_tick_callback (statusbar, (GtkTickCallback) update_statusbar, NULL, NULL);