aboutsummaryrefslogtreecommitdiffstats
path: root/modules/itip-formatter/itip-view.c
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-07-27 18:12:39 +0800
committerDan Vrátil <dvratil@redhat.com>2012-07-27 18:13:20 +0800
commit440e43d2894fdd517cc91302d4364b082e7d1d8b (patch)
tree7c39a2b70fe8bdef99ed1cce3c7b2e6d2406d0cc /modules/itip-formatter/itip-view.c
parente03d9fbc7efba1a0239f85a8cf7339bbad6b1c7d (diff)
downloadgsoc2013-evolution-440e43d2894fdd517cc91302d4364b082e7d1d8b.tar
gsoc2013-evolution-440e43d2894fdd517cc91302d4364b082e7d1d8b.tar.gz
gsoc2013-evolution-440e43d2894fdd517cc91302d4364b082e7d1d8b.tar.bz2
gsoc2013-evolution-440e43d2894fdd517cc91302d4364b082e7d1d8b.tar.lz
gsoc2013-evolution-440e43d2894fdd517cc91302d4364b082e7d1d8b.tar.xz
gsoc2013-evolution-440e43d2894fdd517cc91302d4364b082e7d1d8b.tar.zst
gsoc2013-evolution-440e43d2894fdd517cc91302d4364b082e7d1d8b.zip
Bug #679404 - Read colors for message preview from Gtk theme
Diffstat (limited to 'modules/itip-formatter/itip-view.c')
-rw-r--r--modules/itip-formatter/itip-view.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/modules/itip-formatter/itip-view.c b/modules/itip-formatter/itip-view.c
index 8e651f0ec9..bc54c65139 100644
--- a/modules/itip-formatter/itip-view.c
+++ b/modules/itip-formatter/itip-view.c
@@ -1416,15 +1416,12 @@ itip_view_set_extension_name (ItipView *view,
}
void
-itip_view_write (GString *buffer)
+itip_view_write (EMailFormatter *formatter,
+ GString *buffer)
{
- g_string_append (buffer,
- "<html>\n"
- "<head>\n"
- "<title>ITIP</title>\n"
- "<link type=\"text/css\" rel=\"stylesheet\" href=\"evo-file://" EVOLUTION_PRIVDATADIR "/theme/webview.css\" />\n"
- "</head>\n"
- "<body>\n");
+ gchar *header = e_mail_formatter_get_html_header (formatter);
+ g_string_append (buffer, header);
+ g_free (header);
g_string_append_printf (buffer,
"<img src=\"gtk-stock://%s?size=%d\" class=\"itip icon\" />\n",