[gtk/wip/otte/whatever: 75/83] tests: Make testlistview be a list again
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/whatever: 75/83] tests: Make testlistview be a list again
- Date: Tue, 30 Jun 2020 02:24:30 +0000 (UTC)
commit 1c337d350db69dc11f83e864657152c02c72d77e
Author: Benjamin Otte <otte redhat com>
Date: Tue Jun 30 00:44:00 2020 +0200
tests: Make testlistview be a list again
The grid conversion was for testing and should never have been
committed.
tests/testlistview.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/testlistview.c b/tests/testlistview.c
index 0d33349d58..13bbe13fb8 100644
--- a/tests/testlistview.c
+++ b/tests/testlistview.c
@@ -618,7 +618,7 @@ main (int argc, char *argv[])
gtk_search_entry_set_key_capture_widget (GTK_SEARCH_ENTRY (search_entry), sw);
gtk_box_append (GTK_BOX (vbox), sw);
- listview = gtk_grid_view_new_with_factory (
+ listview = gtk_list_view_new_with_factory (
gtk_functions_list_item_factory_new (setup_widget,
NULL,
NULL, NULL));
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]