comparison finch/gntsound.c @ 19115:4c26b23e7859

Moved: $datadir/sounds/pidgin -> $datadir/sounds/purple Pidgin and Finch both use $datadir/sounds/purple for their sound files.
author Eric Polino <aluink@pidgin.im>
date Mon, 25 Jun 2007 20:27:36 +0000
parents 68a3b83795c6
children 907c41608ada
comparison
equal deleted inserted replaced
19114:6de2e9ba0930 19115:4c26b23e7859
535 /* check NULL for sounds that don't have an option, ie buddy pounce */ 535 /* check NULL for sounds that don't have an option, ie buddy pounce */
536 if (purple_prefs_get_bool(enable_pref)) { 536 if (purple_prefs_get_bool(enable_pref)) {
537 char *filename = g_strdup(purple_prefs_get_path(file_pref)); 537 char *filename = g_strdup(purple_prefs_get_path(file_pref));
538 if(!filename || !strlen(filename)) { 538 if(!filename || !strlen(filename)) {
539 g_free(filename); 539 g_free(filename);
540 filename = g_build_filename(DATADIR, "sounds", "finch", sounds[event].def, NULL); 540 /* XXX Consider creating a constant for "sounds/purple" to be shared with Pidgin */
541 filename = g_build_filename(DATADIR, "sounds", "purple", sounds[event].def, NULL);
541 } 542 }
542 543
543 purple_sound_play_file(filename, NULL); 544 purple_sound_play_file(filename, NULL);
544 g_free(filename); 545 g_free(filename);
545 } 546 }