pidgin/gtksound.c

changeset 19422
30c77768cc4d
parent 18292
631dc097ed98
child 19564
6f04c6ab2897
equal deleted inserted replaced
19303:050c68af4e1a 19422:30c77768cc4d
541 /* check NULL for sounds that don't have an option, ie buddy pounce */ 541 /* check NULL for sounds that don't have an option, ie buddy pounce */
542 if (purple_prefs_get_bool(enable_pref)) { 542 if (purple_prefs_get_bool(enable_pref)) {
543 char *filename = g_strdup(purple_prefs_get_path(file_pref)); 543 char *filename = g_strdup(purple_prefs_get_path(file_pref));
544 if(!filename || !strlen(filename)) { 544 if(!filename || !strlen(filename)) {
545 g_free(filename); 545 g_free(filename);
546 filename = g_build_filename(DATADIR, "sounds", "pidgin", sounds[event].def, NULL); 546 /* XXX Consider creating a constant for "sounds/purple" to be shared with Finch */
547 filename = g_build_filename(DATADIR, "sounds", "purple", sounds[event].def, NULL);
547 } 548 }
548 549
549 purple_sound_play_file(filename, NULL); 550 purple_sound_play_file(filename, NULL);
550 g_free(filename); 551 g_free(filename);
551 } 552 }

mercurial