aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html-display.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2003-11-24 08:35:57 +0800
committerRadek Doulik <rodo@src.gnome.org>2003-11-24 08:35:57 +0800
commitff31ff3b84015b5d5b164aa7a64966fbf5c7b368 (patch)
treed315a45112adec3e43bc6844dbf4a02ec665cdd4 /mail/em-format-html-display.c
parent8cd8035af10d3d1c8f86e206ad9ad7dce5eca4a2 (diff)
downloadgsoc2013-evolution-ff31ff3b84015b5d5b164aa7a64966fbf5c7b368.tar
gsoc2013-evolution-ff31ff3b84015b5d5b164aa7a64966fbf5c7b368.tar.gz
gsoc2013-evolution-ff31ff3b84015b5d5b164aa7a64966fbf5c7b368.tar.bz2
gsoc2013-evolution-ff31ff3b84015b5d5b164aa7a64966fbf5c7b368.tar.lz
gsoc2013-evolution-ff31ff3b84015b5d5b164aa7a64966fbf5c7b368.tar.xz
gsoc2013-evolution-ff31ff3b84015b5d5b164aa7a64966fbf5c7b368.tar.zst
gsoc2013-evolution-ff31ff3b84015b5d5b164aa7a64966fbf5c7b368.zip
do not use horizonal rule, attachment content is now inside simple frame
2003-11-24 Radek Doulik <rodo@ximian.com> * em-format.c (emf_multipart_mixed): do not use horizonal rule, attachment content is now inside simple frame * em-format-html.c (efh_text_plain): add 6 points around text plain content and frame it (efh_text_html): frame text/html (efh_format_do): fix body tag, set bgcolor (em_format_html_format_headers): do not put headers into own table, content body is framed now instead (efh_format_message): update for headers/body changes * em-format-html-display.c (efhd_format_attachment): put additional vertical space around attachment button svn path=/trunk/; revision=23474
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r--mail/em-format-html-display.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 6aa74be4f1..3d57961537 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -169,7 +169,7 @@ efhd_gtkhtml_realise(GtkHTML *html, EMFormatHTMLDisplay *efhd)
b = 128 - ((SCALE * b) >> 9);
}
- efhd->formathtml.header_colour = ((r<<16) | (g<< 8) | b) & 0xffffff;
+ efhd->formathtml.body_colour = ((r<<16) | (g<< 8) | b) & 0xffffff;
r = style->text[state].red >> 8;
g = style->text[state].green >> 8;
@@ -1310,6 +1310,7 @@ efhd_format_attachment(EMFormat *emf, CamelStream *stream, CamelMimePart *part,
info->shown = em_format_is_inline(emf, info->puri.part) && handle != NULL;
camel_stream_write_string(stream,
+ "<table height=6><tr><td><a></a></td></tr></table>\n"
"<table cellspacing=0 cellpadding=0><tr><td>"
"<table width=10 cellspacing=0 cellpadding=0>"
"<tr><td></td></tr></table></td>");
@@ -1328,7 +1329,9 @@ efhd_format_attachment(EMFormat *emf, CamelStream *stream, CamelMimePart *part,
g_free(html);
g_free(text);
- camel_stream_write_string(stream, "</font></td></tr><tr></table>");
+ camel_stream_write_string(stream,
+ "</font></td></tr><tr></table>\n"
+ "<table height=6><tr><td><a></a></td></tr></table>\n");
if (handle) {
if (info->shown)