summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-25 18:25:09 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-09-25 18:25:09 +0000
commita9de1d702ef389c47f7bc78baefcb761a4b73a04 (patch)
tree7aa129cde681cbadf301989a34c1b588d0110ed5 /tests
parentd4b740ce625ca13b7c494122c5d80c86e9a932b3 (diff)
parent0c3f42e06ef68253531461a021ea722444e98fe7 (diff)
downloadgtk+-a9de1d702ef389c47f7bc78baefcb761a4b73a04.tar.gz
Merge branch 'matthiasc/for-master' into 'master'
columnview: Simplify column constructors See merge request GNOME/gtk!2622
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);