[evolution-patches] 60664, mail view not updating with theme change
- From: Not Zed <notzed novell com>
- To: asdf <evolution-patches lists ximian com>
- Subject: [evolution-patches] 60664, mail view not updating with theme change
- Date: Fri, 21 Jan 2005 14:30:47 +0800
simple fix.
this is against and for head but may as well go into stable too
? mail/evolution-mail-2.0.schemas
? mail/ma.diff
? mail/default/zh_CN/Makefile
? mail/default/zh_CN/Makefile.in
Index: mail/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3533
diff -u -p -r1.3533 ChangeLog
--- mail/ChangeLog 18 Jan 2005 06:09:31 -0000 1.3533
+++ mail/ChangeLog 21 Jan 2005 06:32:20 -0000
@@ -1,3 +1,10 @@
+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.
+
2005-01-18 Not Zed <NotZed Ximian com>
** See bug #70768.
Index: mail/em-format-html-display.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-format-html-display.c,v
retrieving revision 1.60
diff -u -p -r1.60 em-format-html-display.c
--- mail/em-format-html-display.c 22 Dec 2004 07:38:16 -0000 1.60
+++ mail/em-format-html-display.c 21 Jan 2005 06:32:20 -0000
@@ -226,6 +226,13 @@ efhd_gtkhtml_realise(GtkHTML *html, EMFo
}
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]