[gtk+] tests: fix volume button



commit 9b81131003a34f174b32a77113c048e8c044e937
Author: William Jon McCann <william jon mccann gmail com>
Date:   Thu Feb 13 03:51:25 2014 -0500

    tests: fix volume button

 tests/testvolumebutton.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/testvolumebutton.c b/tests/testvolumebutton.c
index 30697c5..0dfcc67 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]