summaryrefslogtreecommitdiff
path: root/tests/testbox.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-12-26 08:20:34 +0100
committerMatthias Clasen <mclasen@redhat.com>2019-01-23 19:30:46 -0500
commitbd71e744d2e5dbd853f0c719dd3ebe6abb2f72b6 (patch)
tree6478bd038c42a535caacf65f948892a9d0dfe5e9 /tests/testbox.c
parent09361e76659bd1951a222cd64537abacc6a6f44a (diff)
downloadgtk+-bd71e744d2e5dbd853f0c719dd3ebe6abb2f72b6.tar.gz
Stop using gtk_box_pack_end
It might soon go away!
Diffstat (limited to 'tests/testbox.c')
-rw-r--r--tests/testbox.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/testbox.c b/tests/testbox.c
index cb616f9866..d8510c84ac 100644
--- a/tests/testbox.c
+++ b/tests/testbox.c
@@ -89,12 +89,12 @@ main (int argc, char *argv[])
gtk_container_add (GTK_CONTAINER (window), vbox);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (box), test_widget ("1"));
- gtk_box_pack_start (GTK_BOX (box), test_widget ("2"));
- gtk_box_pack_start (GTK_BOX (box), test_widget ("3"));
- gtk_box_pack_start (GTK_BOX (box), test_widget ("4"));
- gtk_box_pack_end (GTK_BOX (box), test_widget ("5"));
- gtk_box_pack_end (GTK_BOX (box), test_widget ("6"));
+ gtk_container_add (GTK_CONTAINER (box), test_widget ("1"));
+ gtk_container_add (GTK_CONTAINER (box), test_widget ("2"));
+ gtk_container_add (GTK_CONTAINER (box), test_widget ("3"));
+ gtk_container_add (GTK_CONTAINER (box), test_widget ("4"));
+ gtk_container_add (GTK_CONTAINER (box), test_widget ("5"));
+ gtk_container_add (GTK_CONTAINER (box), test_widget ("6"));
gtk_container_add (GTK_CONTAINER (vbox), box);
@@ -112,14 +112,14 @@ main (int argc, char *argv[])
gtk_widget_set_halign (b, GTK_ALIGN_CENTER);
label = gtk_label_new ("Spacing:");
gtk_widget_set_halign (label, GTK_ALIGN_END);
- gtk_box_pack_start (GTK_BOX (b), label);
+ gtk_container_add (GTK_CONTAINER (b), label);
spin = gtk_spin_button_new_with_range (0, 10, 1);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE);
gtk_widget_set_halign (spin, GTK_ALIGN_START);
g_signal_connect (spin, "value-changed",
G_CALLBACK (spacing_changed), box);
- gtk_box_pack_start (GTK_BOX (b), spin);
+ gtk_container_add (GTK_CONTAINER (b), spin);
gtk_container_add (GTK_CONTAINER (vbox), b);
gtk_widget_show (window);