summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-25 13:53:42 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-25 13:57:10 -0400
commit0c3f42e06ef68253531461a021ea722444e98fe7 (patch)
treef8bf0dd94fd0c6a599b12db7f9e8e533dd9b5fe6 /tests
parentc9f6a9f7c523bf6b59aa7fb4cc07092bbaf35378 (diff)
downloadgtk+-0c3f42e06ef68253531461a021ea722444e98fe7.tar.gz
columnview: Simplify column constructors
Drop gtk_column_view_column_new_with_factory and just make gtk_column_view_column_new accept a nullable factory. This follows what we've been doing elsewhere. Update all callers.
Diffstat (limited to 'tests')
-rw-r--r--tests/testcolumnview.c2
-rw-r--r--tests/testlistdnd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/testcolumnview.c b/tests/testcolumnview.c
index aa7e769393..04f09f1ee5 100644
--- a/tests/testcolumnview.c
+++ b/tests/testcolumnview.c
@@ -662,7 +662,7 @@ add_extra_columns (GtkColumnView *view,
for (i = 0; i < G_N_ELEMENTS(extra_columns); i++)
{
bytes = g_bytes_new_static (extra_columns[i].factory_xml, strlen (extra_columns[i].factory_xml));
- column = gtk_column_view_column_new_with_factory (extra_columns[i].title,
+ column = gtk_column_view_column_new (extra_columns[i].title,
gtk_builder_list_item_factory_new_from_bytes (scope, bytes));
g_bytes_unref (bytes);
sorter = GTK_SORTER (gtk_custom_sorter_new (compare_file_attribute, (gpointer) extra_columns[i].attribute, NULL));
diff --git a/tests/testlistdnd.c b/tests/testlistdnd.c
index 803ff2164d..60c943715d 100644
--- a/tests/testlistdnd.c
+++ b/tests/testlistdnd.c
@@ -388,7 +388,7 @@ main (int argc, char *argv[])
g_signal_connect (factory, "unbind", G_CALLBACK (unbind_item), NULL);
title = g_strdup_printf ("Column %u", i);
- column = gtk_column_view_column_new_with_factory (title, factory);
+ column = gtk_column_view_column_new (title, factory);
gtk_column_view_append_column (GTK_COLUMN_VIEW (cv), column);
g_object_unref (column);
g_free (title);