diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-26 17:16:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-26 18:04:40 -0400 |
commit | ccb9dcc86bbc6809e78a5b773324c9d0ffdf0803 (patch) | |
tree | 155ad1eb32c07a02765eb9a7f0a583b333804140 /gtk/gtkcustompaperunixdialog.c | |
parent | 68d6671413587716b75f29d3c18940d560d76f25 (diff) | |
download | gtk+-ccb9dcc86bbc6809e78a5b773324c9d0ffdf0803.tar.gz |
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.
Diffstat (limited to 'gtk/gtkcustompaperunixdialog.c')
-rw-r--r-- | gtk/gtkcustompaperunixdialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |