summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-09-16 01:40:32 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-09-16 01:41:53 +0900
commit896e249e8ff520edc3ba2a0253caf83198c5d6ec (patch)
tree877d7a9da796d37521eb378c3fed20362f77fafc
parent560ca1eaad42a4fdce276ebbe8541aef28f83b56 (diff)
downloadgtk+-896e249e8ff520edc3ba2a0253caf83198c5d6ec.tar.gz
Added a default size of a magic number to testwrapbox.c
This was added to the test only for the sake of making it easier to reproduce a bug with scrolled windows (bug 629778). Expected behaviour: The vertical scrollbar should dissapear as soon as the required height for the full allocation width (without any vertical scrollbar) is small enough to not need a scrollbar.
-rw-r--r--tests/testwrapbox.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testwrapbox.c b/tests/testwrapbox.c
index 0cef70fd82..89a6cef4f7 100644
--- a/tests/testwrapbox.c
+++ b/tests/testwrapbox.c
@@ -442,6 +442,12 @@ create_window (void)
populate_items (GTK_WRAP_BOX (wrapbox));
+ /* This line was added only for the convenience of reproducing
+ * a height-for-width inside GtkScrolledWindow bug (bug 629778).
+ * -Tristan
+ */
+ gtk_window_set_default_size (GTK_WINDOW (window), 390, -1);
+
return window;
}