summaryrefslogtreecommitdiff
path: root/gtk/gtkprintunixdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-26 16:25:12 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-26 18:04:40 -0400
commita46cfd3ff4120c377900374ed660e7299e380914 (patch)
tree45ace17b11f35231ac13640dc92bce313211ed97 /gtk/gtkprintunixdialog.c
parent706d464ae6d5d3f120a2fb22932f49e07f034545 (diff)
downloadgtk+-a46cfd3ff4120c377900374ed660e7299e380914.tar.gz
sortlistmodel: 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/gtkprintunixdialog.c')
-rw-r--r--gtk/gtkprintunixdialog.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 09e7c1ea8b..2305d3d4ed 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -813,7 +813,6 @@ gtk_print_unix_dialog_init (GtkPrintUnixDialog *dialog)
model = load_print_backends (dialog);
sorter = gtk_custom_sorter_new (default_printer_list_sort_func, NULL, NULL);
sorted = G_LIST_MODEL (gtk_sort_list_model_new (model, sorter));
- g_object_unref (sorter);
filter = gtk_every_filter_new ();
@@ -839,7 +838,6 @@ gtk_print_unix_dialog_init (GtkPrintUnixDialog *dialog)
g_signal_connect_swapped (selection, "notify::selected", G_CALLBACK (selected_printer_changed), dialog);
g_object_unref (selection);
g_object_unref (filtered);
- g_object_unref (model);
gtk_print_load_custom_papers (dialog->custom_paper_list);