summaryrefslogtreecommitdiff
path: root/tests/testcombochange.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-04-21 18:59:59 +0200
committerTimm Bäder <mail@baedert.org>2017-04-25 20:30:37 +0200
commit5729ea7744c2a41ae8fb833db6690a6aa5ad7a84 (patch)
treeddda46f8b6c07a999ee9b844ec3a9c863b55a850 /tests/testcombochange.c
parent8f4c0bea6558dc98a2abd7e63436b1ce4caf689e (diff)
downloadgtk+-5729ea7744c2a41ae8fb833db6690a6aa5ad7a84.tar.gz
box: Remove expand child property
GtkWidget already has hexpand/vexpand properties.
Diffstat (limited to 'tests/testcombochange.c')
-rw-r--r--tests/testcombochange.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/tests/testcombochange.c b/tests/testcombochange.c
index fb4656af22..730d74ccf0 100644
--- a/tests/testcombochange.c
+++ b/tests/testcombochange.c
@@ -247,29 +247,30 @@ main (int argc, char **argv)
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
- gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE);
combo_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
- gtk_box_pack_start (GTK_BOX (hbox), combo_vbox, FALSE, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), combo_vbox, FALSE);
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), "<b>Menu mode</b>");
- gtk_box_pack_start (GTK_BOX (combo_vbox), label, FALSE, FALSE);
+ gtk_box_pack_start (GTK_BOX (combo_vbox), label, FALSE);
menu_combo = create_combo ("menu-combo", FALSE);
gtk_widget_set_margin_start (menu_combo, 12);
- gtk_box_pack_start (GTK_BOX (combo_vbox), menu_combo, FALSE, FALSE);
+ gtk_box_pack_start (GTK_BOX (combo_vbox), menu_combo, FALSE);
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), "<b>List mode</b>");
- gtk_box_pack_start (GTK_BOX (combo_vbox), label, FALSE, FALSE);
+ gtk_box_pack_start (GTK_BOX (combo_vbox), label, FALSE);
list_combo = create_combo ("list-combo", TRUE);
gtk_widget_set_margin_start (list_combo, 12);
- gtk_box_pack_start (GTK_BOX (combo_vbox), list_combo, FALSE, FALSE);
+ gtk_box_pack_start (GTK_BOX (combo_vbox), list_combo, FALSE);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
- gtk_box_pack_start (GTK_BOX (hbox), scrolled_window, TRUE, TRUE);
+ gtk_widget_set_hexpand (scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), scrolled_window, TRUE);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
@@ -280,24 +281,24 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (scrolled_window), text_view);
button_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
- gtk_box_pack_start (GTK_BOX (hbox), button_vbox, FALSE, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), button_vbox, FALSE);
gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 300);
button = gtk_button_new_with_label ("Insert");
- gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE, FALSE);
+ gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (on_insert), NULL);
button = gtk_button_new_with_label ("Delete");
- gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE, FALSE);
+ gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (on_delete), NULL);
button = gtk_button_new_with_label ("Reorder");
- gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE, FALSE);
+ gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (on_reorder), NULL);
button = gtk_button_new_with_label ("Animate");
- gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE, FALSE);
+ gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (on_animate), NULL);
gtk_widget_show (dialog);