summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-03-28 16:24:03 +0200
committerTimm Bäder <mail@baedert.org>2018-03-28 16:32:47 +0200
commitc2c126276635e5028a3e9aa71fa3fac9571a0507 (patch)
treea1ed692f5738752b4d2bfadbcb2068d3e2fd594b
parent0c9c6498c33bd18c2ecd5e6037ddec4e0e1ca534 (diff)
downloadgtk+-c2c126276635e5028a3e9aa71fa3fac9571a0507.tar.gz
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.
-rw-r--r--tests/testgtk.c2
1 files changed, 0 insertions, 2 deletions
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++)