From: Timm Bäder Date: Wed, 28 Mar 2018 14:24:03 +0000 (+0200) Subject: testgtk: don't set a focus adjustment on a box X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~750 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c2c126276635e5028a3e9aa71fa3fac9571a0507;p=gtk4.git 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. --- diff --git a/tests/testgtk.c b/tests/testgtk.c index b4982e02b2..94cb785d02 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -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++)