testgtk: don't set a focus adjustment on a box

That will make the focus adjustment code in gtkcontainer.c scroll to the
wrong coordinates.
This commit is contained in:
Timm Bäder 2018-03-28 16:24:03 +02:00
parent 0c9c6498c3
commit c2c1262766

View File

@ -7677,8 +7677,6 @@ create_main_window (void)
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (scrolled_window), box2);
gtk_container_set_focus_vadjustment (GTK_CONTAINER (box2),
gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (scrolled_window)));
gtk_widget_show (box2);
for (i = 0; i < nbuttons; i++)