changeset 3319:3a05fcb133c4

[gaim-migrate @ 3337] No UI for this (yet)... but plugins can use it. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 16 Jun 2002 20:03:31 +0000
parents 26311f474ef7
children 26130b6a04db
files src/dialogs.c src/sound.c src/ui.h
diffstat 3 files changed, 13 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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) {
--- 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;
 
--- 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 *);