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/testheaderbar.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/testheaderbar.c')
-rw-r--r-- | tests/testheaderbar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testheaderbar.c b/tests/testheaderbar.c index 79406ba665..c12ebf1938 100644 --- a/tests/testheaderbar.c +++ b/tests/testheaderbar.c @@ -92,11 +92,11 @@ change_header (GtkButton *button, gpointer data) g_object_set (box, "margin", 10, NULL); gtk_container_add (GTK_CONTAINER (header), box); label = gtk_label_new ("Label"); - gtk_box_pack_start (GTK_BOX (box), label, TRUE); + gtk_box_pack_start (GTK_BOX (box), label); widget = gtk_level_bar_new (); gtk_level_bar_set_value (GTK_LEVEL_BAR (widget), 0.4); gtk_widget_set_hexpand (widget, TRUE); - gtk_box_pack_start (GTK_BOX (box), widget, TRUE); + gtk_box_pack_start (GTK_BOX (box), widget); } else { @@ -160,12 +160,12 @@ main (int argc, char *argv[]) button = gtk_button_new_with_label ("Fullscreen"); gtk_action_bar_pack_end (GTK_ACTION_BAR (footer), button); g_signal_connect (button, "clicked", G_CALLBACK (toggle_fullscreen), window); - gtk_box_pack_end (GTK_BOX (box), footer, FALSE); + gtk_box_pack_end (GTK_BOX (box), footer); content = gtk_image_new_from_icon_name ("start-here-symbolic", GTK_ICON_SIZE_DIALOG); gtk_image_set_pixel_size (GTK_IMAGE (content), 512); - gtk_box_pack_start (GTK_BOX (box), content, TRUE); + gtk_box_pack_start (GTK_BOX (box), content); gtk_widget_show (window); |