diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-07-27 18:12:39 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-07-27 18:13:20 +0800 |
commit | 440e43d2894fdd517cc91302d4364b082e7d1d8b (patch) | |
tree | 7c39a2b70fe8bdef99ed1cce3c7b2e6d2406d0cc /mail | |
parent | e03d9fbc7efba1a0239f85a8cf7339bbad6b1c7d (diff) | |
download | gsoc2013-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 'mail')
-rw-r--r-- | mail/e-mail-display.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c index 6cbbaa6091..57666ea5e8 100644 --- a/mail/e-mail-display.c +++ b/mail/e-mail-display.c @@ -1802,24 +1802,25 @@ void e_mail_display_set_status (EMailDisplay *display, const gchar *status) { - gchar *str; + gchar *str, *header; g_return_if_fail (E_IS_MAIL_DISPLAY (display)); + header = e_mail_formatter_get_html_header (display->priv->formatter); str = g_strdup_printf ( - "<!DOCTYPE>" - "<html>" - "<head><title>Evolution Mail Display</title></head>" - "<body>" - "<table border=\"0\" width=\"100%%\" height=\"100%%\">" - "<tr height=\"100%%\" valign=\"middle\">" - "<td width=\"100%%\" align=\"center\">" - "<strong>%s</strong>" - "</td>" - "</tr>" - "</table>" - "</body>" - "</html>", status); + "%s\n" + " <style>html, body { height: 100%%; }</style>\n" + " <table border=\"0\" width=\"100%%\" height=\"100%%\">\n" + " <tr height=\"100%%\" valign=\"middle\">\n" + " <td width=\"100%%\" align=\"center\">\n" + " <strong>%s</strong>\n" + " </td>\n" + " </tr>\n" + " </table>\n" + "</body>\n" + "</html>\n", + header, status); + g_free (header); e_web_view_load_string (E_WEB_VIEW (display), str); g_free (str); |