summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-26 15:55:44 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-26 18:04:40 -0400
commit706d464ae6d5d3f120a2fb22932f49e07f034545 (patch)
treeee83c7c846d07ea6c5a1c7797d9ba6a37605a26d /tests
parentb6d9f3facbb73417beb1a0388d31a989fcd8cf14 (diff)
downloadgtk+-706d464ae6d5d3f120a2fb22932f49e07f034545.tar.gz
filterlistmodel: 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 'tests')
-rw-r--r--tests/testcolumnview.c2
-rw-r--r--tests/testlistview.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/tests/testcolumnview.c b/tests/testcolumnview.c
index 95d298c223..bf9fb83572 100644
--- a/tests/testcolumnview.c
+++ b/tests/testcolumnview.c
@@ -759,7 +759,6 @@ main (int argc, char *argv[])
custom_filter = gtk_custom_filter_new (match_file, g_object_ref (search_entry), g_object_unref);
filter = gtk_filter_list_model_new (G_LIST_MODEL (sort), custom_filter);
g_signal_connect (search_entry, "search-changed", G_CALLBACK (search_changed_cb), custom_filter);
- g_object_unref (custom_filter);
gtk_column_view_set_model (GTK_COLUMN_VIEW (view), G_LIST_MODEL (filter));
@@ -771,7 +770,6 @@ main (int argc, char *argv[])
gtk_box_append (GTK_BOX (vbox), statusbar);
g_object_unref (filter);
- g_object_unref (sort);
g_object_unref (tree);
list = gtk_list_view_new_with_factory (
diff --git a/tests/testlistview.c b/tests/testlistview.c
index 54cbfb5506..a8b3cc84aa 100644
--- a/tests/testlistview.c
+++ b/tests/testlistview.c
@@ -640,7 +640,6 @@ main (int argc, char *argv[])
custom_filter = gtk_custom_filter_new (match_file, search_entry, NULL);
filter = gtk_filter_list_model_new (G_LIST_MODEL (tree), custom_filter);
g_signal_connect (search_entry, "search-changed", G_CALLBACK (search_changed_cb), custom_filter);
- g_object_unref (custom_filter);
selectionmodel = file_info_selection_new (G_LIST_MODEL (filter));
g_object_unref (filter);
@@ -654,7 +653,6 @@ main (int argc, char *argv[])
update_statusbar (GTK_STATUSBAR (statusbar));
gtk_box_append (GTK_BOX (vbox), statusbar);
- g_object_unref (tree);
g_object_unref (selectionmodel);
gtk_widget_show (win);