aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html-display.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-01-21 14:38:29 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-01-21 14:38:29 +0800
commitfaf8d6d785d70eb404184db5495fbb726becc831 (patch)
treef05a740e5254e9b1db060959d65ef0650f1c781a /mail/em-format-html-display.c
parent5d45c0d9ad123855fbc49b6f3ef3b60db037ba81 (diff)
downloadgsoc2013-evolution-faf8d6d785d70eb404184db5495fbb726becc831.tar.gz
gsoc2013-evolution-faf8d6d785d70eb404184db5495fbb726becc831.tar.zst
gsoc2013-evolution-faf8d6d785d70eb404184db5495fbb726becc831.zip
** See bug #60664.
2005-01-21 Not Zed <NotZed@Ximian.com> ** 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
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r--mail/em-format-html-display.c9
1 files changed, 8 insertions, 1 deletions
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
@@ -226,6 +226,13 @@ efhd_gtkhtml_realise(GtkHTML *html, EMFormatHTMLDisplay *efhd)
}
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)
{
EMFormatHTMLDisplay *efhd = (EMFormatHTMLDisplay *)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