From ccb9dcc86bbc6809e78a5b773324c9d0ffdf0803 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 26 Jul 2020 17:16:15 -0400 Subject: singleselection: Make constructor transfer full This is for consistency with other wrapping list constructors. We want them all to be transfer full, allow-none. Update all callers. --- gtk/gtkcustompaperunixdialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkcustompaperunixdialog.c') diff --git a/gtk/gtkcustompaperunixdialog.c b/gtk/gtkcustompaperunixdialog.c index d16ae2e5ca..138f4e4ef1 100644 --- a/gtk/gtkcustompaperunixdialog.c +++ b/gtk/gtkcustompaperunixdialog.c @@ -896,7 +896,7 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog) listview = gtk_list_view_new (); gtk_widget_set_size_request (listview, 140, -1); - model = G_LIST_MODEL (gtk_single_selection_new (G_LIST_MODEL (dialog->custom_paper_list))); + model = G_LIST_MODEL (gtk_single_selection_new (g_object_ref (G_LIST_MODEL (dialog->custom_paper_list)))); gtk_list_view_set_model (GTK_LIST_VIEW (listview), model); g_signal_connect (model, "notify::selected", G_CALLBACK (selected_custom_paper_changed), dialog); g_object_unref (model); -- cgit v1.2.1