summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-03 15:04:33 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-05 21:43:42 -0400
commitdfabe74c593b876f50e56903e6c5f7f11f332781 (patch)
treed66e52265919a29d0f376f855ac22e30a8593260 /tests
parent716c7b2f217b9852fa446b4566180ae10f48f618 (diff)
downloadgtk+-dfabe74c593b876f50e56903e6c5f7f11f332781.tar.gz
Make filter constructors return exact types
Make functions like gtk_custom_filter_new() return the actual type they construct. Update all callers.
Diffstat (limited to 'tests')
-rw-r--r--tests/testcolumnview.c2
-rw-r--r--tests/testlistview.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/testcolumnview.c b/tests/testcolumnview.c
index d38e83ce6d..2c5643cb23 100644
--- a/tests/testcolumnview.c
+++ b/tests/testcolumnview.c
@@ -756,7 +756,7 @@ main (int argc, char *argv[])
sorter = gtk_tree_list_row_sorter_new (g_object_ref (gtk_column_view_get_sorter (GTK_COLUMN_VIEW (view))));
sort = gtk_sort_list_model_new (G_LIST_MODEL (tree), sorter);
- custom_filter = gtk_custom_filter_new (match_file, g_object_ref (search_entry), g_object_unref);
+ custom_filter = GTK_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);
diff --git a/tests/testlistview.c b/tests/testlistview.c
index 53234078b5..2eeb89fe54 100644
--- a/tests/testlistview.c
+++ b/tests/testlistview.c
@@ -629,7 +629,7 @@ main (int argc, char *argv[])
NULL, NULL);
g_object_unref (root);
- custom_filter = gtk_custom_filter_new (match_file, search_entry, NULL);
+ custom_filter = GTK_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);