summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-13 03:51:25 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-02-13 20:47:24 -0500
commit9b81131003a34f174b32a77113c048e8c044e937 (patch)
treef626441a670f80b3e92e25c755201b877e717865 /tests
parent352ea3a48d9608e0290d54e1e7d591dd260eee72 (diff)
downloadgtk+-9b81131003a34f174b32a77113c048e8c044e937.tar.gz
tests: fix volume button
Diffstat (limited to 'tests')
-rw-r--r--tests/testvolumebutton.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/testvolumebutton.c b/tests/testvolumebutton.c
index 30697c5c66..0dfcc673fe 100644
--- a/tests/testvolumebutton.c
+++ b/tests/testvolumebutton.c
@@ -80,19 +80,23 @@ main (int argc,
GtkWidget *button2;
GtkWidget *button3;
GtkWidget *box;
+ GtkWidget *vbox;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
button = gtk_volume_button_new ();
button2 = gtk_volume_button_new ();
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
g_signal_connect (G_OBJECT (button), "value-changed",
G_CALLBACK (value_changed),
NULL);
- gtk_container_add (GTK_CONTAINER (window), box);
+ gtk_container_add (GTK_CONTAINER (window), vbox);
+ gtk_container_add (GTK_CONTAINER (vbox), box);
gtk_container_add (GTK_CONTAINER (box), button);
gtk_container_add (GTK_CONTAINER (box), button2);