pidgin/plugins/adiumthemes/webkit.c

branch
soc.2009.webkitmessageview
changeset 32488
17153501cae6
parent 32487
13f307997f1a
child 32490
ece69f13d4fa
--- a/pidgin/plugins/adiumthemes/webkit.c	Sun Aug 16 07:01:11 2009 +0000
+++ b/pidgin/plugins/adiumthemes/webkit.c	Sun Aug 16 19:28:23 2009 +0000
@@ -333,7 +333,7 @@
 	PidginMessageStyle *style, *oldStyle;
 	oldStyle = g_object_get_data (G_OBJECT(webkit), MESSAGE_STYLE_KEY);
 	
-	g_return_if_fail (!oldStyle);
+	if (oldStyle) return;
 
 	purple_debug_info ("webkit", "loading %s\n", style_dir);
 	style = pidgin_message_style_load (style_dir);
@@ -703,7 +703,8 @@
 	g_assert (style);
 	name = gtk_combo_box_get_active_text (GTK_COMBO_BOX (combobox));
 	pidgin_message_style_set_variant (style, name);
-
+	pidgin_message_style_save_state (style);
+	
 	/* update conversations */
 	list = purple_get_conversations ();
 	while (list) {

mercurial