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.
This commit is contained in:
Matthias Clasen
2020-06-24 11:25:09 -04:00
parent 2cfeb1048c
commit 386b63b85d
93 changed files with 126 additions and 146 deletions

View File

@@ -768,7 +768,7 @@ activate (GApplication *app)
gtk_window_set_child (GTK_WINDOW (main_window), box);
/* Create document */
sw = gtk_scrolled_window_new (NULL, NULL);
sw = gtk_scrolled_window_new ();
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
GTK_POLICY_AUTOMATIC,