summaryrefslogtreecommitdiff
path: root/tests/testlist.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-24 11:25:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-24 11:25:09 -0400
commit386b63b85d803b593142ccb074524693d047a66a (patch)
tree5731d1acf8d9c453f3513c171de4b6aec55de135 /tests/testlist.c
parent2cfeb1048c1090b7ce99638bd19feaf41246a8f2 (diff)
downloadgtk+-386b63b85d803b593142ccb074524693d047a66a.tar.gz
scrolledwindow: Don't take adjustments in new()
In 99.9% of all cases, these are just NULL, NULL. So just do away with these arguments, people can use the setters for the rare cases where they want the scrolled window to use a different adjustment.
Diffstat (limited to 'tests/testlist.c')
-rw-r--r--tests/testlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testlist.c b/tests/testlist.c
index da44389d98..b781c28980 100644
--- a/tests/testlist.c
+++ b/tests/testlist.c
@@ -282,7 +282,7 @@ main (int argc, char *argv[])
g_signal_connect (check, "toggled", G_CALLBACK (single_click_clicked), list);
gtk_box_append (GTK_BOX (vbox), check);
- scrolled = gtk_scrolled_window_new (NULL, NULL);
+ scrolled = gtk_scrolled_window_new ();
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (scrolled), list);
gtk_box_append (GTK_BOX (hbox), scrolled);