Mercurial > pidgin
comparison src/sound.c @ 451:7b49c67e561c
[gaim-migrate @ 461]
sounds go through gnome should actually go thorugh gnome
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 30 Jun 2000 05:55:02 +0000 |
parents | 2b91e42bff70 |
children | eaab8abda2c0 |
comparison
equal
deleted
inserted
replaced
450:e1c09b8c8bb1 | 451:7b49c67e561c |
---|---|
264 } | 264 } |
265 } | 265 } |
266 | 266 |
267 extern int logins_not_muted; | 267 extern int logins_not_muted; |
268 | 268 |
269 #ifdef USE_APPLET | |
270 void applet_play_sound(int sound) | |
271 #else | |
269 void play_sound(int sound) | 272 void play_sound(int sound) |
273 #endif | |
270 { | 274 { |
271 | 275 |
272 switch(sound) { | 276 switch(sound) { |
273 case BUDDY_ARRIVE: | 277 case BUDDY_ARRIVE: |
274 if ((sound_options & OPT_SOUND_LOGIN) && logins_not_muted) | 278 if ((sound_options & OPT_SOUND_LOGIN) && logins_not_muted) |
298 } | 302 } |
299 | 303 |
300 #ifdef USE_APPLET | 304 #ifdef USE_APPLET |
301 | 305 |
302 #include <gnome.h> | 306 #include <gnome.h> |
303 void applet_play_sound(int sound) | 307 void play_sound(int sound) |
304 { | 308 { |
305 | 309 |
306 if (!(sound_options & OPT_SOUND_THROUGH_GNOME)) { | 310 if (!(sound_options & OPT_SOUND_THROUGH_GNOME)) { |
307 play_sound(sound); | 311 applet_play_sound(sound); |
308 return; | 312 return; |
309 } | 313 } |
310 | 314 |
311 switch(sound) { | 315 switch(sound) { |
312 case BUDDY_ARRIVE: | 316 case BUDDY_ARRIVE: |