comparison src/sound.c @ 11652:a66ee70c614c

[gaim-migrate @ 13936] Whoops committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 13 Oct 2005 01:48:03 +0000
parents 58bc500cf226
children 5bc3d67ceb24
comparison
equal deleted inserted replaced
11651:723487d07aa0 11652:a66ee70c614c
31 void 31 void
32 gaim_sound_play_file(const char *filename, const GaimAccount *account) 32 gaim_sound_play_file(const char *filename, const GaimAccount *account)
33 { 33 {
34 GaimStatus *status; 34 GaimStatus *status;
35 35
36 if ((account != NULL) && (!gaim_prefs_get_bool("/core/sounds/while_away"))) 36 if ((account != NULL) && (!gaim_prefs_get_bool("/core/sound/while_away")))
37 { 37 {
38 status = gaim_account_get_active_status(account); 38 status = gaim_account_get_active_status(account);
39 if (gaim_status_is_online(status) && !gaim_status_is_available(status)) 39 if (gaim_status_is_online(status) && !gaim_status_is_available(status))
40 return; 40 return;
41 } 41 }
47 void 47 void
48 gaim_sound_play_event(GaimSoundEventID event, const GaimAccount *account) 48 gaim_sound_play_event(GaimSoundEventID event, const GaimAccount *account)
49 { 49 {
50 GaimStatus *status; 50 GaimStatus *status;
51 51
52 if ((account != NULL) && (!gaim_prefs_get_bool("/core/sounds/while_away"))) 52 if ((account != NULL) && (!gaim_prefs_get_bool("/core/sound/while_away")))
53 { 53 {
54 status = gaim_account_get_active_status(account); 54 status = gaim_account_get_active_status(account);
55 if (gaim_status_is_online(status) && !gaim_status_is_available(status)) 55 if (gaim_status_is_online(status) && !gaim_status_is_available(status))
56 return; 56 return;
57 } 57 }