diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-01 15:43:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-04 17:01:18 -0400 |
commit | e9ddf0fda552889ba17c2f34705ed87d38824cff (patch) | |
tree | c65b1d09251323952b66808a3ffaf11bf36a73bb /gtk/gtkscrolledwindow.c | |
parent | 937c94bab510645f543dc7b634fa2767372f268d (diff) | |
download | gtk+-e9ddf0fda552889ba17c2f34705ed87d38824cff.tar.gz |
Use gtk_viewport_set_child throughout
Replace all uses of gtk_container_add on viewports
by gtk_viewport_set_child.
Diffstat (limited to 'gtk/gtkscrolledwindow.c')
-rw-r--r-- | gtk/gtkscrolledwindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index d2c660607e..0d2eedccd7 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -3501,7 +3501,7 @@ gtk_scrolled_window_add (GtkContainer *container, else { scrollable_child = gtk_viewport_new (hadj, vadj); - gtk_container_add (GTK_CONTAINER (scrollable_child), child); + gtk_viewport_set_child (GTK_VIEWPORT (scrollable_child), child); priv->auto_added_viewport = TRUE; } |