Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
132:f12425e6660d | 133:e277d5f0c1dd |
---|---|
108 while (gtk_events_pending()) | 108 while (gtk_events_pending()) |
109 gtk_main_iteration(); | 109 gtk_main_iteration(); |
110 } | 110 } |
111 | 111 |
112 static int snd_tmout; | 112 static int snd_tmout; |
113 int logins_not_muted = 1; | |
113 static void sound_timeout() { | 114 static void sound_timeout() { |
114 sound_options += OPT_SOUND_LOGIN; | 115 logins_not_muted = 1; |
115 gtk_timeout_remove(snd_tmout); | 116 gtk_timeout_remove(snd_tmout); |
116 } | 117 } |
117 | 118 |
118 void dologin(GtkWidget *widget, GtkWidget *w) | 119 void dologin(GtkWidget *widget, GtkWidget *w) |
119 { | 120 { |
146 return; | 147 return; |
147 } | 148 } |
148 | 149 |
149 if (sound_options & OPT_SOUND_LOGIN && | 150 if (sound_options & OPT_SOUND_LOGIN && |
150 sound_options & OPT_SOUND_SILENT_SIGNON) { | 151 sound_options & OPT_SOUND_SILENT_SIGNON) { |
151 sound_options -= OPT_SOUND_LOGIN; | 152 logins_not_muted = 0; |
152 snd_tmout = gtk_timeout_add(10000, (GtkFunction)sound_timeout, | 153 snd_tmout = gtk_timeout_add(10000, (GtkFunction)sound_timeout, |
153 NULL); | 154 NULL); |
154 } | 155 } |
155 | 156 |
156 #ifdef USE_APPLET | 157 #ifdef USE_APPLET |