Mercurial > pidgin
diff src/sound.c @ 338:9d258a0aa560
[gaim-migrate @ 348]
Whoa, all kinds of things happened here. The applet looks better. The
preferences dialog changes based on your compile-time options (oscar,
gnome). Whispering works again. libfaim got updated; it can almost do
RVOUS stuff, and hopefully soon can make requests too. The applet doesn't
need to have its sounds go through GNOME, although it still can. There
is code to facilitate SOCKS5 support (all that needs to be done is to
actually write the code to communicate with the proxy server).
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 06 Jun 2000 09:55:30 +0000 |
parents | 5d62a5d50c89 |
children | b402a23f35df |
line wrap: on
line diff
--- a/src/sound.c Tue Jun 06 09:36:12 2000 +0000 +++ b/src/sound.c Tue Jun 06 09:55:30 2000 +0000 @@ -261,7 +261,6 @@ } extern int logins_not_muted; -#ifndef USE_APPLET void play_sound(int sound) { @@ -294,12 +293,17 @@ } } -#else /* USE_APPLET */ +#ifdef USE_APPLET #include <gnome.h> -void play_sound(int sound) +void applet_play_sound(int sound) { + if (!(sound_options & OPT_SOUND_THROUGH_GNOME)) { + play_sound(sound); + return; + } + switch(sound) { case BUDDY_ARRIVE: if ((sound_options & OPT_SOUND_LOGIN) && logins_not_muted)