| 527 /* check NULL for sounds that don't have an option, ie buddy pounce */ |
527 /* check NULL for sounds that don't have an option, ie buddy pounce */ |
| 528 if (purple_prefs_get_bool(enable_pref)) { |
528 if (purple_prefs_get_bool(enable_pref)) { |
| 529 char *filename = g_strdup(purple_prefs_get_path(file_pref)); |
529 char *filename = g_strdup(purple_prefs_get_path(file_pref)); |
| 530 if(!filename || !strlen(filename)) { |
530 if(!filename || !strlen(filename)) { |
| 531 g_free(filename); |
531 g_free(filename); |
| 532 filename = g_build_filename(DATADIR, "sounds", "purple", sounds[event].def, NULL); |
532 filename = g_build_filename(DATADIR, "sounds", "pidgin", sounds[event].def, NULL); |
| 533 } |
533 } |
| 534 |
534 |
| 535 purple_sound_play_file(filename, NULL); |
535 purple_sound_play_file(filename, NULL); |
| 536 g_free(filename); |
536 g_free(filename); |
| 537 } |
537 } |