src/sound.c

changeset 11652
ec80ecebb264
parent 11642
76b60f0bf467
child 12291
2af68342099e
equal deleted inserted replaced
11651:02f366130354 11652:ec80ecebb264
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 }

mercurial