summaryrefslogtreecommitdiff
path: root/tests/testflowbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testflowbox.c')
-rw-r--r--tests/testflowbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testflowbox.c b/tests/testflowbox.c
index 14b274acb0..9421409f3d 100644
--- a/tests/testflowbox.c
+++ b/tests/testflowbox.c
@@ -407,7 +407,7 @@ create_window (void)
gtk_flow_box_set_min_children_per_line (GTK_FLOW_BOX (flowbox), INITIAL_MINIMUM_LENGTH);
gtk_flow_box_set_max_children_per_line (GTK_FLOW_BOX (flowbox), INITIAL_MAXIMUM_LENGTH);
gtk_widget_show (flowbox);
- gtk_container_add (GTK_CONTAINER (swindow), flowbox);
+ gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (swindow), flowbox);
gtk_flow_box_set_hadjustment (GTK_FLOW_BOX (flowbox),
gtk_scrolled_window_get_hadjustment (GTK_SCROLLED_WINDOW (swindow)));