diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-06-24 11:25:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-24 11:25:09 -0400 |
commit | 386b63b85d803b593142ccb074524693d047a66a (patch) | |
tree | 5731d1acf8d9c453f3513c171de4b6aec55de135 /tests/testheaderbar.c | |
parent | 2cfeb1048c1090b7ce99638bd19feaf41246a8f2 (diff) | |
download | gtk+-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/testheaderbar.c')
-rw-r--r-- | tests/testheaderbar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testheaderbar.c b/tests/testheaderbar.c index 6326e54cc0..9ee5613006 100644 --- a/tests/testheaderbar.c +++ b/tests/testheaderbar.c @@ -103,7 +103,7 @@ create_headerbar_overlay (GtkApplication *app) gtk_overlay_add_overlay (GTK_OVERLAY (overlay), header); load_css (header, "headerbar { background: alpha(shade(@theme_bg_color, .9), .8); }"); - sw = gtk_scrolled_window_new (NULL, NULL); + sw = gtk_scrolled_window_new (); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_widget_set_size_request (sw, 300, 250); gtk_overlay_set_child (GTK_OVERLAY (overlay), sw); |