aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-05-17 02:30:16 +0800
committerDan Winship <danw@src.gnome.org>2001-05-17 02:30:16 +0800
commit866d1a8d52430183e527c4812c669728e7bda38c (patch)
tree739f6f2736991f38b3e940d346e1e1c9449b1c10 /mail/mail-display.c
parent71002d1544cdbcf825377602dd738c15f910b93b (diff)
downloadgsoc2013-evolution-866d1a8d52430183e527c4812c669728e7bda38c.tar
gsoc2013-evolution-866d1a8d52430183e527c4812c669728e7bda38c.tar.gz
gsoc2013-evolution-866d1a8d52430183e527c4812c669728e7bda38c.tar.bz2
gsoc2013-evolution-866d1a8d52430183e527c4812c669728e7bda38c.tar.lz
gsoc2013-evolution-866d1a8d52430183e527c4812c669728e7bda38c.tar.xz
gsoc2013-evolution-866d1a8d52430183e527c4812c669728e7bda38c.tar.zst
gsoc2013-evolution-866d1a8d52430183e527c4812c669728e7bda38c.zip
Deal with full-header mode in addition to source mode
* mail-display.c (mail_display_redisplay): Deal with full-header mode in addition to source mode * mail-format.c (write_field_row_begin): Add WRITE_NOCOLUMNS flag to write the header in a single table cell rather than two. Output the second columns's "<td>" when not in NOCOLUMNS mode. Don't include the ":" in the passed-in header name. (write_date, write_address): Update for write_field_row_begin changes. (write_text_field): Genericified and updated from write_subject. (write_headers): Deal with both normal and full-header mode. svn path=/trunk/; revision=9850
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index d1433622cb..87ca5fd1dd 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -1115,10 +1115,13 @@ mail_display_redisplay (MailDisplay *md, gboolean unscroll)
mail_html_write (md->html, md->stream, "%s%s", HTML_HEADER, "<BODY>\n");
if (md->current_message) {
- if (mail_config_get_message_display_style () == MAIL_CONFIG_DISPLAY_SOURCE)
+ MailConfigDisplayStyle style = mail_config_get_message_display_style ();
+ if (style == MAIL_CONFIG_DISPLAY_SOURCE)
mail_format_raw_message (md->current_message, md);
- else
+ else {
+ g_datalist_set_data (md->data, "full_headers", GINT_TO_POINTER (style == MAIL_CONFIG_DISPLAY_FULL_HEADERS));
mail_format_mime_message (md->current_message, md);
+ }
}
mail_html_write (md->html, md->stream, "</BODY></HTML>\n");