summaryrefslogtreecommitdiff
path: root/tests/testexpand.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/testexpand.c
parent09361e76659bd1951a222cd64537abacc6a6f44a (diff)
downloadgtk+-bd71e744d2e5dbd853f0c719dd3ebe6abb2f72b6.tar.gz
Stop using gtk_box_pack_end
It might soon go away!
Diffstat (limited to 'tests/testexpand.c')
-rw-r--r--tests/testexpand.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/testexpand.c b/tests/testexpand.c
index de820237ee..348e66dd85 100644
--- a/tests/testexpand.c
+++ b/tests/testexpand.c
@@ -53,24 +53,22 @@ create_box_window (void)
box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (box1),
+ gtk_container_add (GTK_CONTAINER (box1),
gtk_label_new ("VBox 1 Top"));
- gtk_box_pack_start (GTK_BOX (box1),
+ gtk_container_add (GTK_CONTAINER (box1),
box2);
- gtk_box_pack_end (GTK_BOX (box1),
- gtk_label_new ("VBox 1 Bottom"));
+ gtk_container_add (GTK_CONTAINER(box1),
+ gtk_label_new ("VBox 1 Bottom"));
- gtk_box_pack_start (GTK_BOX (box2),
+ gtk_container_add (GTK_CONTAINER (box2),
gtk_label_new ("HBox 2 Left"));
- gtk_box_pack_start (GTK_BOX (box2),
+ gtk_container_add (GTK_CONTAINER (box2),
box3);
- gtk_box_pack_end (GTK_BOX (box2),
- gtk_label_new ("HBox 2 Right"));
+ gtk_container_add (GTK_CONTAINER(box2),
+ gtk_label_new ("HBox 2 Right"));
- gtk_box_pack_start (GTK_BOX (box3),
+ gtk_container_add (GTK_CONTAINER (box3),
gtk_label_new ("VBox 3 Top"));
- gtk_box_pack_end (GTK_BOX (box3),
- gtk_label_new ("VBox 3 Bottom"));
colorbox = gtk_frame_new (NULL);
@@ -82,7 +80,7 @@ create_box_window (void)
G_CALLBACK (on_toggle_hexpand), NULL);
gtk_container_add (GTK_CONTAINER (colorbox), toggle);
- gtk_box_pack_start (GTK_BOX (box3), colorbox);
+ gtk_container_add (GTK_CONTAINER (box3), colorbox);
colorbox = gtk_frame_new (NULL);
@@ -93,7 +91,9 @@ create_box_window (void)
g_signal_connect (G_OBJECT (toggle), "toggled",
G_CALLBACK (on_toggle_vexpand), NULL);
gtk_container_add (GTK_CONTAINER (colorbox), toggle);
- gtk_box_pack_start (GTK_BOX (box3), colorbox);
+ gtk_container_add (GTK_CONTAINER (box3), colorbox);
+ gtk_container_add (GTK_CONTAINER (box3),
+ gtk_label_new ("VBox 3 Bottom"));
gtk_container_add (GTK_CONTAINER (window), box1);
gtk_widget_show (window);