testgtk: don't set a focus adjustment on a box
authorTimm Bäder <mail@baedert.org>
Wed, 28 Mar 2018 14:24:03 +0000 (16:24 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 28 Mar 2018 14:32:47 +0000 (16:32 +0200)
That will make the focus adjustment code in gtkcontainer.c scroll to the
wrong coordinates.

tests/testgtk.c

index b4982e02b29821faa1bbea19349d9f6fc0a04810..94cb785d0292828231e8950ba5da0bc867ed4328 100644 (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++)