changeset 19760:96d4a3238029

Fix a small bug in sound-test, thanks to igungor in #pidgin.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 12 Sep 2007 09:15:17 +0000
parents 46ed3f3f780e
children 8c356223e182
files finch/gntsound.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);