summaryrefslogtreecommitdiff
path: root/tests/testexpand.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-01 13:41:22 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 17:01:18 -0400
commit1706b808156431dce49f49ff846f46937c85e8f7 (patch)
tree249e664fca0e93b8c24f49b1c12e31f000174066 /tests/testexpand.c
parent7f975472a7d9de73a664170f051d1e7f60690bd8 (diff)
downloadgtk+-1706b808156431dce49f49ff846f46937c85e8f7.tar.gz
Use gtk_frame_set_child throughout
Replace all uses of gtk_container_add for frames with gtk_frame_set_child.
Diffstat (limited to 'tests/testexpand.c')
-rw-r--r--tests/testexpand.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testexpand.c b/tests/testexpand.c
index 4f57d09254..a6d20d8044 100644
--- a/tests/testexpand.c
+++ b/tests/testexpand.c
@@ -81,7 +81,7 @@ create_box_window (void)
gtk_widget_set_margin_bottom (toggle, 5);
g_signal_connect (G_OBJECT (toggle), "toggled",
G_CALLBACK (on_toggle_hexpand), NULL);
- gtk_container_add (GTK_CONTAINER (colorbox), toggle);
+ gtk_frame_set_child (GTK_FRAME (colorbox), toggle);
gtk_container_add (GTK_CONTAINER (box3), colorbox);
@@ -96,7 +96,7 @@ create_box_window (void)
gtk_widget_set_margin_bottom (toggle, 5);
g_signal_connect (G_OBJECT (toggle), "toggled",
G_CALLBACK (on_toggle_vexpand), NULL);
- gtk_container_add (GTK_CONTAINER (colorbox), toggle);
+ gtk_frame_set_child (GTK_FRAME (colorbox), toggle);
gtk_container_add (GTK_CONTAINER (box3), colorbox);
gtk_container_add (GTK_CONTAINER (box3),
gtk_label_new ("VBox 3 Bottom"));
@@ -134,7 +134,7 @@ create_grid_window (void)
gtk_widget_set_margin_bottom (toggle, 5);
g_signal_connect (G_OBJECT (toggle), "toggled",
G_CALLBACK (on_toggle_hexpand), NULL);
- gtk_container_add (GTK_CONTAINER (colorbox), toggle);
+ gtk_frame_set_child (GTK_FRAME (colorbox), toggle);
gtk_grid_attach (GTK_GRID (grid), colorbox, 1, 1, 1, 1);
@@ -149,7 +149,7 @@ create_grid_window (void)
gtk_widget_set_margin_bottom (toggle, 5);
g_signal_connect (G_OBJECT (toggle), "toggled",
G_CALLBACK (on_toggle_vexpand), NULL);
- gtk_container_add (GTK_CONTAINER (colorbox), toggle);
+ gtk_frame_set_child (GTK_FRAME (colorbox), toggle);
gtk_grid_attach (GTK_GRID (grid), colorbox, 1, 2, 1, 1);