diff options
author | Benjamin Otte <otte@redhat.com> | 2020-06-30 00:44:00 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-07-05 02:59:21 +0200 |
commit | 6f2f828bcebe49f8b1e56049016b08195fda0e32 (patch) | |
tree | 3422caf4b1ab09f4a7efe0368c965b47a077f590 /tests | |
parent | 795d3122cc53897cbc25cbfc64a1e15e806f5ce2 (diff) | |
download | gtk+-6f2f828bcebe49f8b1e56049016b08195fda0e32.tar.gz |
tests: Make testlistview be a list again
The grid conversion was for testing and should never have been
committed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testlistview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testlistview.c b/tests/testlistview.c index a230c50ed0..6e82bdff9b 100644 --- a/tests/testlistview.c +++ b/tests/testlistview.c @@ -621,7 +621,7 @@ main (int argc, char *argv[]) factory = gtk_signal_list_item_factory_new (); g_signal_connect (factory, "setup", G_CALLBACK (setup_widget), NULL); - listview = gtk_grid_view_new_with_factory (factory); + listview = gtk_list_view_new_with_factory (factory); gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), listview); if (argc > 1) @@ -645,7 +645,7 @@ main (int argc, char *argv[]) selectionmodel = file_info_selection_new (G_LIST_MODEL (filter)); g_object_unref (filter); - gtk_grid_view_set_model (GTK_GRID_VIEW (listview), G_LIST_MODEL (selectionmodel)); + gtk_list_view_set_model (GTK_LIST_VIEW (listview), G_LIST_MODEL (selectionmodel)); statusbar = gtk_statusbar_new (); gtk_widget_add_tick_callback (statusbar, (GtkTickCallback) update_statusbar, NULL, NULL); |