Mercurial > pidgin
diff src/sound.c @ 606:eaab8abda2c0
[gaim-migrate @ 616]
ok, a few changes.
1) --enable-gnome (which is the default) can make sounds go through gnome,
which means they're configurable. they can still go through gaim.
2) --enable-gnome will also install the necessary files to make sounds
through gnome work.
3) the rpm will be built without gnome; if a distributor later wants to
require gnome that's up to them.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 04 Aug 2000 17:13:54 +0000 |
parents | 7b49c67e561c |
children | 6ba20a0089d8 |
line wrap: on
line diff
--- a/src/sound.c Fri Aug 04 05:36:02 2000 +0000 +++ b/src/sound.c Fri Aug 04 17:13:54 2000 +0000 @@ -266,8 +266,8 @@ extern int logins_not_muted; -#ifdef USE_APPLET -void applet_play_sound(int sound) +#ifdef USE_GNOME +void gnome_play_sound(int sound) #else void play_sound(int sound) #endif @@ -301,43 +301,43 @@ } } -#ifdef USE_APPLET +#ifdef USE_GNOME #include <gnome.h> void play_sound(int sound) { if (!(sound_options & OPT_SOUND_THROUGH_GNOME)) { - applet_play_sound(sound); + gnome_play_sound(sound); return; } switch(sound) { case BUDDY_ARRIVE: if ((sound_options & OPT_SOUND_LOGIN) && logins_not_muted) - gnome_triggers_do("", "program", "gaim_applet", "login", NULL); + gnome_triggers_do("", "program", "gaim", "login", NULL); break; case BUDDY_LEAVE: if (sound_options & OPT_SOUND_LOGOUT) - gnome_triggers_do("", "program", "gaim_applet", "leave", NULL); + gnome_triggers_do("", "program", "gaim", "leave", NULL); break; case SEND: if (sound_options & OPT_SOUND_SEND) - gnome_triggers_do("", "program", "gaim_applet", "send", NULL); + gnome_triggers_do("", "program", "gaim", "send", NULL); break; case FIRST_RECEIVE: if (sound_options & OPT_SOUND_FIRST_RCV) - gnome_triggers_do("", "program", "gaim_applet", "recv", NULL); + gnome_triggers_do("", "program", "gaim", "recv", NULL); break; case RECEIVE: if (sound_options & OPT_SOUND_RECV) - gnome_triggers_do("", "program", "gaim_applet", "recv", NULL); + gnome_triggers_do("", "program", "gaim", "recv", NULL); break; case AWAY: if (sound_options & OPT_SOUND_WHEN_AWAY) - gnome_triggers_do("", "program", "gaim_applet", "recv", NULL); + gnome_triggers_do("", "program", "gaim", "recv", NULL); break; } } -#endif /* USE_APPLET */ +#endif /* USE_GNOME */