pidgin: e12afb80: Re-themeize the sample GtkIMHtml entry i...

qulogic at pidgin.im qulogic at pidgin.im
Wed Dec 23 03:47:31 EST 2009


-----------------------------------------------------------------
Revision: e12afb8039f55dcc905fc845cdfcdc23178e1af4
Ancestor: 7583d5cd1f78cf3472d2cc2780bedf4134de49ba
Author: qulogic at pidgin.im
Date: 2009-12-23T04:12:20
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e12afb8039f55dcc905fc845cdfcdc23178e1af4

Modified files:
        pidgin/gtkprefs.c

ChangeLog: 

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

Fixes #8558.

-------------- next part --------------
============================================================
--- pidgin/gtkprefs.c	afd2949c435e4ed52a9b2665fb40f7208611b1ad
+++ pidgin/gtkprefs.c	351b0ecd0b8608799eb8e525e7857a368403264e
@@ -77,6 +77,9 @@ static int notebook_page = 0;
 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 @@ delete_prefs(GtkWidget *asdf, void *gdsa
 	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 @@ prefs_set_smiley_theme_cb(GtkComboBox *c
 		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,8 +1555,8 @@ conv_page(void)
 					 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);
 
 	return ret;


More information about the Commits mailing list