diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-09 08:26:52 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-11 22:38:21 -0400 |
commit | 2a24b8c6534b58051135570399cba8a6b04d34ea (patch) | |
tree | c3b4690ed396ab2b2ca162641bd2008d0bd7630e /tests/testframe.c | |
parent | 665edcba53bf2f2e854a95cdcc52a72c16a1a427 (diff) | |
download | gtk+-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.c | 4 |
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); |