# HG changeset patch # User Sean Egan # Date 1024257811 0 # Node ID 3a05fcb133c40fe1d855bfe26cdbbc85e647621d # Parent 26311f474ef73428de05f5e1948796f4ce44a08f [gaim-migrate @ 3337] No UI for this (yet)... but plugins can use it. committer: Tailor Script diff -r 26311f474ef7 -r 3a05fcb133c4 src/dialogs.c --- a/src/dialogs.c Sun Jun 16 17:14:28 2002 +0000 +++ b/src/dialogs.c Sun Jun 16 20:03:31 2002 +0000 @@ -4285,9 +4285,9 @@ button_box = gtk_hbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(button), button_box); - button_box_2 = gtk_vbox_new(FALSE, 0); - - gtk_box_pack_start(GTK_BOX(button_box), button_box_2, TRUE, TRUE, 0); + button_box_2 = gtk_vbox_new(TRUE, 0); + + gtk_box_pack_start(GTK_BOX(button_box), button_box_2, FALSE, FALSE, 0); gtk_widget_show(button_box_2); gtk_widget_show(button_box); if (dispstyle == 2 || dispstyle == 0) { diff -r 26311f474ef7 -r 3a05fcb133c4 src/sound.c --- a/src/sound.c Sun Jun 16 17:14:28 2002 +0000 +++ b/src/sound.c Sun Jun 16 20:03:31 2002 +0000 @@ -52,6 +52,9 @@ #include "sounds/Receive.h" #include "sounds/RedAlert.h" + +gboolean mute_sounds = 0; + /* label and opt are null for the buddy pounce because it's configured * * per pounce. NULL option means it doesn't get displayed in the sound * * preferences box */ @@ -551,6 +554,10 @@ void play_sound(int sound) { + + if (mute_sounds) + return; + if (awaymessage && !(sound_options & OPT_SOUND_WHEN_AWAY)) return; diff -r 26311f474ef7 -r 3a05fcb133c4 src/ui.h --- a/src/ui.h Sun Jun 16 17:14:28 2002 +0000 +++ b/src/ui.h Sun Jun 16 20:03:31 2002 +0000 @@ -309,6 +309,9 @@ /* Globals in prpl.c */ extern GtkWidget *protomenu; +/* Globals in sound.c */ +extern gboolean mute_sounds; + /* Functions in about.c */ extern void show_about(GtkWidget *, void *); extern void gaim_help(GtkWidget *, void *);