scrolledwindow: Always keep the main child first

Otherwise we can't pick the scrollbars, which are allocated behind it.
This commit is contained in:
Timm Bäder 2020-05-07 19:00:30 +02:00
parent 343d294bfb
commit d015b1b29e

View File

@ -4213,7 +4213,7 @@ gtk_scrolled_window_set_child (GtkScrolledWindow *scrolled_window,
}
priv->child = scrollable_child;
gtk_widget_set_parent (scrollable_child, GTK_WIDGET (scrolled_window));
gtk_widget_insert_after (scrollable_child, GTK_WIDGET (scrolled_window), NULL);
g_object_set (scrollable_child,
"hadjustment", hadj,