diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-10-04 12:52:46 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-10-04 12:52:46 +0000 |
commit | 0afe895ad2226b0f6006d91ddfc60aa3677552fc (patch) | |
tree | 02a5a2f16142f73dfa501af252699b9f18ae89f7 /tests/testvolumebutton.c | |
parent | 618c8de2218dd94a5482349538c36eaff10c9114 (diff) | |
download | gtk+-0afe895ad2226b0f6006d91ddfc60aa3677552fc.tar.gz |
Add a second volume button.
2007-10-04 Matthias Clasen <mclasen@redhat.com>
* tests/testvolumebutton.c: Add a second volume button.
* gtk/gtkscalebutton.c: Doh, don't release grabs we don't hold.
(#478371, reported by Bill Nottingham)
svn path=/trunk/; revision=18881
Diffstat (limited to 'tests/testvolumebutton.c')
-rw-r--r-- | tests/testvolumebutton.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/testvolumebutton.c b/tests/testvolumebutton.c index 3e316ebd21..28ccede852 100644 --- a/tests/testvolumebutton.c +++ b/tests/testvolumebutton.c @@ -60,15 +60,22 @@ int main (int argc, char **argv) { GtkWidget *window; GtkWidget *button; + GtkWidget *button2; + GtkWidget *box; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); button = gtk_volume_button_new (); + button2 = gtk_volume_button_new (); + box = gtk_hbox_new (FALSE, 0); + g_signal_connect (G_OBJECT (button), "value-changed", G_CALLBACK (value_changed), NULL); - gtk_container_add (GTK_CONTAINER (window), button); + gtk_container_add (GTK_CONTAINER (window), box); + gtk_container_add (GTK_CONTAINER (box), button); + gtk_container_add (GTK_CONTAINER (box), button2); gtk_widget_show_all (window); gtk_button_clicked (GTK_BUTTON (button)); |