# HG changeset patch # User Sadrul Habib Chowdhury # Date 1189588517 0 # Node ID 96d4a323802948b08a17bc0e4360595c50553572 # Parent 46ed3f3f780e3b8a89dc4d20091b81a2eec0a7b1 Fix a small bug in sound-test, thanks to igungor in #pidgin. diff -r 46ed3f3f780e -r 96d4a3238029 finch/gntsound.c --- a/finch/gntsound.c Tue Sep 11 07:13:05 2007 +0000 +++ b/finch/gntsound.c Wed Sep 12 09:15:17 2007 +0000 @@ -684,17 +684,17 @@ volpref = g_strdup(make_pref("/volume")); temp_value = purple_prefs_get_bool(enabled); - tmpfile = g_strdup(purple_prefs_get_string(file)); + tmpfile = g_strdup(purple_prefs_get_path(file)); volume = purple_prefs_get_int(volpref); - purple_prefs_set_string(file, event->file); + purple_prefs_set_path(file, event->file); if (!temp_value) purple_prefs_set_bool(enabled, TRUE); purple_prefs_set_int(volpref, gnt_slider_get_value(GNT_SLIDER(pref_dialog->volume))); purple_sound_play_event(id, NULL); if (!temp_value) purple_prefs_set_bool(enabled, FALSE); - purple_prefs_set_string(file, tmpfile); + purple_prefs_set_path(file, tmpfile); purple_prefs_set_int(volpref, volume); g_free(enabled);