From faf8d6d785d70eb404184db5495fbb726becc831 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 21 Jan 2005 06:38:29 +0000 Subject: ** See bug #60664. 2005-01-21 Not Zed ** See bug #60664. * em-format-html-display.c (efhd_init, efhd_gtkhtml_style_set): if the style changes, re-calculate the page colours, and redraw. svn path=/trunk/; revision=28478 --- mail/ChangeLog | 7 +++++++ mail/em-format-html-display.c | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index c215c46989..ee6b2466d1 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2005-01-21 Not Zed + + ** See bug #60664. + + * em-format-html-display.c (efhd_init, efhd_gtkhtml_style_set): if + the style changes, re-calculate the page colours, and redraw. + 2005-01-20 Jeffrey Stedfast * em-folder-tree.c (emft_copy_folders__desc): Added a description diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index da9cc53c55..8175b29df8 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -225,6 +225,13 @@ efhd_gtkhtml_realise(GtkHTML *html, EMFormatHTMLDisplay *efhd) #undef SCALE } +static void +efhd_gtkhtml_style_set(GtkHTML *html, GtkStyle *old, EMFormatHTMLDisplay *efhd) +{ + efhd_gtkhtml_realise(html, efhd); + em_format_redraw((EMFormat *)efhd); +} + static void efhd_init(GObject *o) { @@ -237,7 +244,7 @@ efhd_init(GObject *o) html_engine_set_tokenizer(efh->html->engine, (HTMLTokenizer *)efhd->search_tok); g_signal_connect(efh->html, "realize", G_CALLBACK(efhd_gtkhtml_realise), o); - + g_signal_connect(efh->html, "style-set", G_CALLBACK(efhd_gtkhtml_style_set), o); /* we want to convert url's etc */ efh->text_html_flags |= CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS | CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES; #undef efh -- cgit v1.2.3