summaryrefslogtreecommitdiff
path: root/tests/treestoretest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/treestoretest.c')
-rw-r--r--tests/treestoretest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/treestoretest.c b/tests/treestoretest.c
index c461c25b37..d8a3430b86 100644
--- a/tests/treestoretest.c
+++ b/tests/treestoretest.c
@@ -342,7 +342,7 @@ make_window (gint view_type)
gtk_tree_selection_set_mode (GTK_TREE_SELECTION (selection), GTK_SELECTION_SINGLE);
/* Put them together */
- gtk_container_add (GTK_CONTAINER (scrolled_window), tree_view);
+ gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (scrolled_window), tree_view);
gtk_widget_set_vexpand (scrolled_window, TRUE);
gtk_container_add (GTK_CONTAINER (vbox), scrolled_window);
gtk_container_add (GTK_CONTAINER (window), vbox);