summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2010-10-12 18:25:22 +0200
committerKristian Rietveld <kris@gtk.org>2010-10-12 19:12:44 +0200
commitc143105ae928c6a75a6d8ba9e70fa0472f4b4232 (patch)
tree78e4656fe53e2e0e668570d9f1da5c3176d9400d /gtk
parent65c3fc99536ead0f755b027043eaa2e2052bf0ef (diff)
downloadgtk+-c143105ae928c6a75a6d8ba9e70fa0472f4b4232.tar.gz
Fix scrolled window policy so the size allocation does not "flap"
Diffstat (limited to 'gtk')
-rw-r--r--gtk/tests/treeview-scrolling.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/tests/treeview-scrolling.c b/gtk/tests/treeview-scrolling.c
index 19c5dc2ae3..90f8fea492 100644
--- a/gtk/tests/treeview-scrolling.c
+++ b/gtk/tests/treeview-scrolling.c
@@ -110,6 +110,9 @@ scroll_fixture_setup (ScrollFixture *fixture,
fixture->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
sw = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
+ GTK_POLICY_NEVER,
+ GTK_POLICY_ALWAYS);
gtk_container_add (GTK_CONTAINER (fixture->window), sw);
fixture->tree_view = gtk_tree_view_new_with_model (model);