scrolledwindow: Stop setting focus adjustments

Stop setting focus adjustments on the automatically
generated viewport.
This commit is contained in:
Matthias Clasen 2020-04-16 17:24:04 -04:00
parent b315dce757
commit 13b6b9f2b4

View File

@ -3501,10 +3501,6 @@ gtk_scrolled_window_add (GtkContainer *container,
else
{
scrollable_child = gtk_viewport_new (hadj, vadj);
gtk_container_set_focus_hadjustment (GTK_CONTAINER (scrollable_child),
gtk_scrolled_window_get_hadjustment (GTK_SCROLLED_WINDOW (scrolled_window)));
gtk_container_set_focus_vadjustment (GTK_CONTAINER (scrollable_child),
gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (scrolled_window)));
gtk_container_add (GTK_CONTAINER (scrollable_child), child);
priv->auto_added_viewport = TRUE;
}