From e9ddf0fda552889ba17c2f34705ed87d38824cff Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 1 May 2020 15:43:09 -0400 Subject: Use gtk_viewport_set_child throughout Replace all uses of gtk_container_add on viewports by gtk_viewport_set_child. --- gtk/gtkscrolledwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkscrolledwindow.c') 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; } -- cgit v1.2.1