[gtk+] Fix the scrolledwindow test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix the scrolledwindow test
- Date: Wed, 31 Aug 2016 19:05:48 +0000 (UTC)
commit 4a035403d3ba83c8efc35b5216ff64f6cc7ebfcb
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 31 15:04:57 2016 -0400
Fix the scrolledwindow test
These tests were written for the propagate-nat-size semantics,
so opt in to it.
testsuite/gtk/scrolledwindow.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/scrolledwindow.c b/testsuite/gtk/scrolledwindow.c
index 317f913..b62b323 100644
--- a/testsuite/gtk/scrolledwindow.c
+++ b/testsuite/gtk/scrolledwindow.c
@@ -22,6 +22,8 @@ test_size (GtkOrientation orientation,
gtk_widget_set_vexpand (box, TRUE);
scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_propagate_natural_width (GTK_SCROLLED_WINDOW (scrolledwindow), TRUE);
+ gtk_scrolled_window_set_propagate_natural_height (GTK_SCROLLED_WINDOW (scrolledwindow), TRUE);
gtk_container_add (GTK_CONTAINER (scrolledwindow), box);
gtk_widget_show_all (scrolledwindow);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]