summaryrefslogtreecommitdiff
path: root/tests/testframe.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-09 08:26:52 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-11 22:38:21 -0400
commit2a24b8c6534b58051135570399cba8a6b04d34ea (patch)
treec3b4690ed396ab2b2ca162641bd2008d0bd7630e /tests/testframe.c
parent665edcba53bf2f2e854a95cdcc52a72c16a1a427 (diff)
downloadgtk+-2a24b8c6534b58051135570399cba8a6b04d34ea.tar.gz
Replace most remaining uses of container api
These are all on GtkBox or enumerating children.
Diffstat (limited to 'tests/testframe.c')
-rw-r--r--tests/testframe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testframe.c b/tests/testframe.c
index f52e0caeba..36464daab2 100644
--- a/tests/testframe.c
+++ b/tests/testframe.c
@@ -79,7 +79,7 @@ int main (int argc, char **argv)
frame = GTK_FRAME (gtk_frame_new ("Test GtkFrame"));
gtk_widget_set_vexpand (GTK_WIDGET (frame), TRUE);
- gtk_container_add (GTK_CONTAINER (vbox), GTK_WIDGET (frame));
+ gtk_box_append (GTK_BOX (vbox), GTK_WIDGET (frame));
widget = gtk_button_new_with_label ("Hello!");
gtk_frame_set_child (GTK_FRAME (frame), widget);
@@ -87,7 +87,7 @@ int main (int argc, char **argv)
grid = GTK_GRID (gtk_grid_new ());
gtk_grid_set_row_spacing (grid, 12);
gtk_grid_set_column_spacing (grid, 6);
- gtk_container_add (GTK_CONTAINER (vbox), GTK_WIDGET (grid));
+ gtk_box_append (GTK_BOX (vbox), GTK_WIDGET (grid));
xalign = gtk_frame_get_label_align (frame);