comparison pidgin/gtksound.c @ 15863:78f056497b72

Make sounds work by correcting the path.
author Richard Laager <rlaager@wiktel.com>
date Wed, 21 Mar 2007 08:40:43 +0000
parents 32c366eeeb99
children 66dff3dfdea6
comparison
equal deleted inserted replaced
15862:346a366840c2 15863:78f056497b72
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 }