[gtk+] testgtk: Fix the test scrolling test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testgtk: Fix the test scrolling test
- Date: Tue, 2 Jan 2018 23:16:08 +0000 (UTC)
commit e522ff05320a7bd23c97a1452d9a503f83b5a971
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 1 10:40:09 2018 -0500
testgtk: Fix the test scrolling test
We need to expand here, otherwise things look wrong.
tests/testgtk.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index d709e21..05257bc 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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]