diff src/aim.c @ 133:e277d5f0c1dd

[gaim-migrate @ 143] Let's see if I can remember everything I did: - Fixed a bug I let slip. If you choose the new option to not play login sounds when you log in, and then quit before the timeout is up, it would save that you didn't want login sounds at all. - Added two new plugin events: event_away and event_buddy_away. - Made GtkWidget *imaway in away.c and void play(uchar *, int) in sound.c not static any more (though not referenced in gaim.h). This is so plugins can use those (and not have to worry about writing their own sound code). - Wrote a quick plugin to auto-iconify windows when you go away. I had just been locally patching my own copy, since I figured it wasn't worth including as an option. It also demonstrates some of the issues of deciding between USE_APPLET and not. Perhaps plugins are the way to go with some things that would otherwise have been options (for example, the Lag-O-Meter is one of those things that could possibly have been a plugin instead of hard-coded in). I think that's everything. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 19 Apr 2000 02:04:30 +0000
parents 45bcfa3b584c
children e8ea1e2fdf0c
line wrap: on
line diff
--- a/src/aim.c	Tue Apr 18 09:05:55 2000 +0000
+++ b/src/aim.c	Wed Apr 19 02:04:30 2000 +0000
@@ -110,8 +110,9 @@
 }
 
 static int snd_tmout;
+int logins_not_muted = 1;
 static void sound_timeout() {
-	sound_options += OPT_SOUND_LOGIN;
+	logins_not_muted = 1;
 	gtk_timeout_remove(snd_tmout);
 }
 
@@ -148,7 +149,7 @@
 
 	if (sound_options & OPT_SOUND_LOGIN &&
 		sound_options & OPT_SOUND_SILENT_SIGNON) {
-		sound_options -= OPT_SOUND_LOGIN;
+		logins_not_muted = 0;
 		snd_tmout = gtk_timeout_add(10000, (GtkFunction)sound_timeout,
 				NULL);
 	}