Mercurial > pidgin
changeset 28816:77f2534b0cac
Re-themeize the sample GtkIMHtml entry in the prefs Conversations page when
the smiley theme is changed.
Fixes #8558.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 23 Dec 2009 04:12:20 +0000 |
parents | f56b7177553d |
children | 2df96ace4f33 |
files | pidgin/gtkprefs.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);