summaryrefslogtreecommitdiff
path: root/tests/overlayscroll.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/overlayscroll.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/overlayscroll.c')
-rw-r--r--tests/overlayscroll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/overlayscroll.c b/tests/overlayscroll.c
index 2daee85411..0eb0582b6f 100644
--- a/tests/overlayscroll.c
+++ b/tests/overlayscroll.c
@@ -78,7 +78,7 @@ main (int argc, char *argv[])
GTK_POLICY_AUTOMATIC);
gtk_widget_set_hexpand (sw, TRUE);
- gtk_container_add (GTK_CONTAINER (box), sw);
+ gtk_box_append (GTK_BOX (box), sw);
content = get_content ();
@@ -98,10 +98,10 @@ main (int argc, char *argv[])
g_signal_connect (combo, "changed", G_CALLBACK (mode_changed), sw);
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 1);
- gtk_container_add (GTK_CONTAINER (box), combo);
+ gtk_box_append (GTK_BOX (box), combo);
sb2 = gtk_scrollbar_new (GTK_ORIENTATION_VERTICAL, adj);
- gtk_container_add (GTK_CONTAINER (box), sb2);
+ gtk_box_append (GTK_BOX (box), sb2);
gtk_widget_show (window);