# HG changeset patch
# User tdrhq@soc.pidgin.im
# Date 1255488763 0
# Node ID dcbdee6148e4b3bcd6c4d5866d14f1429db36203
# Parent  4b53d875529f19ea4dff43d4ddf33000e084054a
save the style path across sessions.

diff -r 4b53d875529f -r dcbdee6148e4 pidgin/plugins/adiumthemes/webkit.c
--- a/pidgin/plugins/adiumthemes/webkit.c	Wed Aug 26 03:19:30 2009 +0000
+++ b/pidgin/plugins/adiumthemes/webkit.c	Wed Oct 14 02:52:43 2009 +0000
@@ -658,6 +658,7 @@
 	g_free (name);
 	g_free (cur_style_dir);
 	cur_style_dir = g_strdup (iter->data);;
+	purple_prefs_set_string ("/plugins/gtk/adiumthemes/stylepath", cur_style_dir);
 
 	/* inform the user that existing conversations haven't changed */
 	dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, "The style for existing conversations have not been changed. Please close and re-open the conversation for the changes to take effect.");
@@ -846,7 +847,7 @@
 	purple_prefs_add_none ("/plugins");
 	purple_prefs_add_none ("/plugins/gtk");
 	purple_prefs_add_none ("/plugins/gtk/adiumthemes");
-	purple_prefs_add_string ("/plugins/gtk/adiumthemes/csspath", "");
+	purple_prefs_add_string ("/plugins/gtk/adiumthemes/stylepath", "");
 }
 
 PURPLE_INIT_PLUGIN(webkit, init_plugin, info)