# HG changeset patch # User Elliott Sales de Andrade # Date 1261541540 0 # Node ID 77f2534b0cacc5c72941280f679b1404616095f6 # Parent f56b7177553dbab6e1c46937eb3f9b2a16025637 Re-themeize the sample GtkIMHtml entry in the prefs Conversations page when the smiley theme is changed. Fixes #8558. diff -r f56b7177553d -r 77f2534b0cac pidgin/gtkprefs.c --- 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);