Re-themeize the sample GtkIMHtml entry in the prefs Conversations page when

Wed, 23 Dec 2009 04:12:20 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Wed, 23 Dec 2009 04:12:20 +0000
changeset 29152
8462e73fa1b5
parent 29151
e7102801c04b
child 29153
ee7369d8f401

Re-themeize the sample GtkIMHtml entry in the prefs Conversations page when
the smiley theme is changed.

Fixes #8558.

pidgin/gtkprefs.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkprefs.c	Wed Dec 23 02:21:52 2009 +0000
+++ b/pidgin/gtkprefs.c	Wed Dec 23 04:12:20 2009 +0000
@@ -77,6 +77,9 @@
 static GtkWidget *prefsnotebook = NULL;
 static int notebook_page = 0;
 
+/* Conversations page */
+static GtkWidget *sample_imhtml = NULL;
+
 /* Themes page */
 static GtkWidget *prefs_sound_themes_combo_box;
 static GtkWidget *prefs_blist_themes_combo_box;
@@ -347,6 +350,8 @@
 	prefs_status_themes_combo_box = NULL;
 	prefs_smiley_themes_combo_box = NULL;
 
+	sample_imhtml = NULL;
+
 	notebook_page = 0;
 	prefsnotebook = NULL;
 	prefs = NULL;
@@ -961,6 +966,7 @@
 		gtk_tree_model_get(GTK_TREE_MODEL(prefs_smiley_themes), &new_iter, 2, &new_theme, -1);
 
 		purple_prefs_set_string(PIDGIN_PREFS_ROOT "/smileys/theme", new_theme);
+		pidgin_themes_smiley_themeize(sample_imhtml);
 
 		g_free(new_theme);
 	}
@@ -1549,7 +1555,7 @@
 					 G_CALLBACK(formatting_toggle_cb), toolbar);
 	g_signal_connect_after(G_OBJECT(imhtml), "format_function_clear",
 					 G_CALLBACK(formatting_clear_cb), NULL);
-
+	sample_imhtml = imhtml;
 
 	gtk_widget_show(ret);
 

mercurial