summaryrefslogtreecommitdiff
path: root/tests/listmodel.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/listmodel.c')
-rw-r--r--tests/listmodel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/listmodel.c b/tests/listmodel.c
index ee61a053f0..f4d88fe477 100644
--- a/tests/listmodel.c
+++ b/tests/listmodel.c
@@ -203,7 +203,7 @@ main (int argc, char *argv[])
box = gtk_list_box_new ();
gtk_list_box_bind_model (GTK_LIST_BOX (box), G_LIST_MODEL (store), create_widget, NULL, NULL);
- gtk_container_add (GTK_CONTAINER (sw), box);
+ gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), box);
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
@@ -215,7 +215,7 @@ main (int argc, char *argv[])
box = gtk_flow_box_new ();
gtk_flow_box_bind_model (GTK_FLOW_BOX (box), G_LIST_MODEL (store), create_widget, NULL, NULL);
- gtk_container_add (GTK_CONTAINER (sw), box);
+ gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), box);
button = gtk_button_new_with_label ("Add some");
g_signal_connect (button, "clicked", G_CALLBACK (add_some), store);