| 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 } |