diff options
author | Timm Bäder <mail@baedert.org> | 2017-04-21 22:34:36 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-04-25 20:30:37 +0200 |
commit | c92b7d4224b9cef1d08373fcc28f7fbd96c64e6d (patch) | |
tree | 6eaa81528f6ec5152eccc475df7b4d8a769f3ea6 /tests/testexpand.c | |
parent | 5729ea7744c2a41ae8fb833db6690a6aa5ad7a84 (diff) | |
download | gtk+-c92b7d4224b9cef1d08373fcc28f7fbd96c64e6d.tar.gz |
box: Remove fill child property
GtkWidget:halign and GtkWidget:valign are sufficient
Diffstat (limited to 'tests/testexpand.c')
-rw-r--r-- | tests/testexpand.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/tests/testexpand.c b/tests/testexpand.c index f8a54e783f..de820237ee 100644 --- a/tests/testexpand.c +++ b/tests/testexpand.c @@ -54,31 +54,23 @@ create_box_window (void) box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (box1), - gtk_label_new ("VBox 1 Top"), - FALSE); + gtk_label_new ("VBox 1 Top")); gtk_box_pack_start (GTK_BOX (box1), - box2, - TRUE); + box2); gtk_box_pack_end (GTK_BOX (box1), - gtk_label_new ("VBox 1 Bottom"), - FALSE); + gtk_label_new ("VBox 1 Bottom")); gtk_box_pack_start (GTK_BOX (box2), - gtk_label_new ("HBox 2 Left"), - FALSE); + gtk_label_new ("HBox 2 Left")); gtk_box_pack_start (GTK_BOX (box2), - box3, - TRUE); + box3); gtk_box_pack_end (GTK_BOX (box2), - gtk_label_new ("HBox 2 Right"), - FALSE); + gtk_label_new ("HBox 2 Right")); gtk_box_pack_start (GTK_BOX (box3), - gtk_label_new ("VBox 3 Top"), - FALSE); + gtk_label_new ("VBox 3 Top")); gtk_box_pack_end (GTK_BOX (box3), - gtk_label_new ("VBox 3 Bottom"), - FALSE); + gtk_label_new ("VBox 3 Bottom")); colorbox = gtk_frame_new (NULL); @@ -90,7 +82,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, TRUE); + gtk_box_pack_start (GTK_BOX (box3), colorbox); colorbox = gtk_frame_new (NULL); @@ -101,7 +93,7 @@ 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, TRUE); + gtk_box_pack_start (GTK_BOX (box3), colorbox); gtk_container_add (GTK_CONTAINER (window), box1); gtk_widget_show (window); |