summaryrefslogtreecommitdiff
path: root/tests/testexpand.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-02 17:26:54 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 22:53:08 -0400
commitf59f3551902268600090c0382068103a09184df0 (patch)
treeaa006e0f33df61b714d68d2931f7a3bc64933fac /tests/testexpand.c
parentb9b1bf85e19fb31fcff2ab6b0dce8d0fffea7e01 (diff)
downloadgtk+-f59f3551902268600090c0382068103a09184df0.tar.gz
Use gtk_window_set_child throughout
Replace all uses of gtk_container_add on windows by gtk_window_set_child.
Diffstat (limited to 'tests/testexpand.c')
-rw-r--r--tests/testexpand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testexpand.c b/tests/testexpand.c
index a6d20d8044..131eea5b2d 100644
--- a/tests/testexpand.c
+++ b/tests/testexpand.c
@@ -101,7 +101,7 @@ create_box_window (void)
gtk_container_add (GTK_CONTAINER (box3),
gtk_label_new ("VBox 3 Bottom"));
- gtk_container_add (GTK_CONTAINER (window), box1);
+ gtk_window_set_child (GTK_WINDOW (window), box1);
gtk_widget_show (window);
}
@@ -153,7 +153,7 @@ create_grid_window (void)
gtk_grid_attach (GTK_GRID (grid), colorbox, 1, 2, 1, 1);
- gtk_container_add (GTK_CONTAINER (window), grid);
+ gtk_window_set_child (GTK_WINDOW (window), grid);
gtk_widget_show (window);
}