summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-26 18:32:50 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-26 18:32:50 -0400
commitfc22b75a06e9ee0298e63694299680c6a9a6d598 (patch)
treeb5c93d8d489dc86ee2b7edcbce32e5ea561869f5 /tests
parent43000abeff11caa481b21ebe102dff9d6b439e18 (diff)
downloadgtk+-fc22b75a06e9ee0298e63694299680c6a9a6d598.tar.gz
columnview: Revise the constructor
Make gtk_column_view_new take a model as first argument, and make it allow-none and transfer full. Update all callers.
Diffstat (limited to 'tests')
-rw-r--r--tests/testlistdnd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/testlistdnd.c b/tests/testlistdnd.c
index 338b522842..0f404f4221 100644
--- a/tests/testlistdnd.c
+++ b/tests/testlistdnd.c
@@ -381,11 +381,7 @@ main (int argc, char *argv[])
gtk_scrolled_window_set_has_frame (GTK_SCROLLED_WINDOW (sw), TRUE);
gtk_stack_add_titled (GTK_STACK (stack), sw, "column", "GtkColumnView");
- cv = gtk_column_view_new ();
-
- model = create_model (0, 400, 1, FALSE);
- gtk_column_view_set_model (GTK_COLUMN_VIEW (cv), model);
- g_object_unref (model);
+ cv = gtk_column_view_new (create_model (0, 400, 1, FALSE));
for (guint i = 0; i < 20; i++)
{