diff options
author | Timm Bäder <mail@baedert.org> | 2017-04-21 18:59:59 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-04-25 20:30:37 +0200 |
commit | 5729ea7744c2a41ae8fb833db6690a6aa5ad7a84 (patch) | |
tree | ddda46f8b6c07a999ee9b844ec3a9c863b55a850 /tests/teststack.c | |
parent | 8f4c0bea6558dc98a2abd7e63436b1ce4caf689e (diff) | |
download | gtk+-5729ea7744c2a41ae8fb833db6690a6aa5ad7a84.tar.gz |
box: Remove expand child property
GtkWidget already has hexpand/vexpand properties.
Diffstat (limited to 'tests/teststack.c')
-rw-r--r-- | tests/teststack.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/teststack.c b/tests/teststack.c index 11176640a7..fa06a34cb1 100644 --- a/tests/teststack.c +++ b/tests/teststack.c @@ -127,7 +127,7 @@ main (gint argc, gtk_container_add (GTK_CONTAINER (window), box); switcher = gtk_stack_switcher_new (); - gtk_box_pack_start (GTK_BOX (box), switcher, FALSE, FALSE); + gtk_box_pack_start (GTK_BOX (box), switcher, FALSE); stack = gtk_stack_new (); @@ -141,8 +141,9 @@ main (gint argc, sidebar = gtk_stack_sidebar_new (); gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), GTK_STACK (stack)); layout = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); - gtk_box_pack_start (GTK_BOX (layout), sidebar, FALSE, FALSE); - gtk_box_pack_start (GTK_BOX (layout), stack, TRUE, TRUE); + gtk_box_pack_start (GTK_BOX (layout), sidebar, FALSE); + gtk_widget_set_hexpand (stack, TRUE); + gtk_box_pack_start (GTK_BOX (layout), stack, TRUE); gtk_container_add (GTK_CONTAINER (box), layout); |