comparison src/sound.c @ 3901:7740c891537e

[gaim-migrate @ 4054] "If a buddy pounce is enabled for a buddy, and a sound file is set to play (and the preferences say sounds shouldn't be played while away), but gaim is set away, a sound will be played anyway. This fixes such a behavior." -- Ari Pollak (sourceo) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 05 Nov 2002 05:20:48 +0000
parents 9682c0e022c6
children b2520034b62f
comparison
equal deleted inserted replaced
3900:32ebcc0df96c 3901:7740c891537e
423 void play_file(char *filename) 423 void play_file(char *filename)
424 { 424 {
425 #ifndef _WIN32 425 #ifndef _WIN32
426 int pid; 426 int pid;
427 #endif 427 #endif
428 if (awaymessage && !(sound_options & OPT_SOUND_WHEN_AWAY))
429 return; /* check here in case a buddy pounce plays a file while away */
430
428 if (sound_options & OPT_SOUND_BEEP) { 431 if (sound_options & OPT_SOUND_BEEP) {
429 gdk_beep(); 432 gdk_beep();
430 return; 433 return;
431 } 434 }
432 435