diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-16 16:16:02 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-17 07:35:09 -0400 |
commit | a9c7f94e04207d95c0ff1f18f37477dab440d353 (patch) | |
tree | 69d151a4a9fd5f8592d245dcff4dc1f4bf20289c /tests/testlistview.c | |
parent | 31bb969cce30f30121d5b03730417aa41ae2e4b9 (diff) | |
download | gtk+-view-model-selection.tar.gz |
Change list widget to use a GtkSelectionModelview-model-selection
Change the type of the model property in GtkListView,
GtkColumnView and GtkGridView to be GtkSelectionModel.
The convenience of automatic interposition of a selection
model is minor, compared to the confusion.
Update all callers.
Diffstat (limited to 'tests/testlistview.c')
-rw-r--r-- | tests/testlistview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testlistview.c b/tests/testlistview.c index 6e82bdff9b..1a6ccdf907 100644 --- a/tests/testlistview.c +++ b/tests/testlistview.c @@ -645,7 +645,7 @@ main (int argc, char *argv[]) selectionmodel = file_info_selection_new (G_LIST_MODEL (filter)); g_object_unref (filter); - gtk_list_view_set_model (GTK_LIST_VIEW (listview), G_LIST_MODEL (selectionmodel)); + gtk_list_view_set_model (GTK_LIST_VIEW (listview), GTK_SELECTION_MODEL (selectionmodel)); statusbar = gtk_statusbar_new (); gtk_widget_add_tick_callback (statusbar, (GtkTickCallback) update_statusbar, NULL, NULL); |