summaryrefslogtreecommitdiff
path: root/tests/testtoolbar2.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/testtoolbar2.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/testtoolbar2.c')
-rw-r--r--tests/testtoolbar2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testtoolbar2.c b/tests/testtoolbar2.c
index 82f8918e3d..50698713d8 100644
--- a/tests/testtoolbar2.c
+++ b/tests/testtoolbar2.c
@@ -14,7 +14,7 @@ int main (int argc, char *argv[])
window = gtk_window_new ();
gtk_window_set_default_size (GTK_WINDOW (window), 600, 400);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_container_add (GTK_CONTAINER (window), box);
+ gtk_window_set_child (GTK_WINDOW (window), box);
frame = gtk_frame_new (NULL);
gtk_container_add (GTK_CONTAINER (box), frame);
view = gtk_text_view_new ();