summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-01 10:40:09 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-02 18:14:13 -0500
commite522ff05320a7bd23c97a1452d9a503f83b5a971 (patch)
tree6760a89e61bc81a9ffdf62ecc6f11098008bdeb9 /tests
parentd3014c23b9d37eab3ff4a948bc6d4ab0bf70d873 (diff)
downloadgtk+-e522ff05320a7bd23c97a1452d9a503f83b5a971.tar.gz
testgtk: Fix the test scrolling test
We need to expand here, otherwise things look wrong.
Diffstat (limited to 'tests')
-rw-r--r--tests/testgtk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c
index d709e21332..05257bceea 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -7148,6 +7148,8 @@ create_scroll_test (GtkWidget *widget)
scroll_test_pos = 0.0;
drawing_area = gtk_drawing_area_new ();
+ gtk_widget_set_hexpand (drawing_area, TRUE);
+ gtk_widget_set_vexpand (drawing_area, TRUE);
gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (drawing_area), 200);
gtk_drawing_area_set_content_height (GTK_DRAWING_AREA (drawing_area), 200);
gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (drawing_area),