aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2002-01-31 05:12:29 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-01-31 05:12:29 +0800
commitae64f7d6bf37b586dec7b3956c5badffd21a827e (patch)
tree90347c96ee65b11e72bf66f7c070d211c560d61e
parentf41e2fe50e08e52411d104f6e4aa26b31d0a9e86 (diff)
downloadgsoc2013-evolution-ae64f7d6bf37b586dec7b3956c5badffd21a827e.tar
gsoc2013-evolution-ae64f7d6bf37b586dec7b3956c5badffd21a827e.tar.gz
gsoc2013-evolution-ae64f7d6bf37b586dec7b3956c5badffd21a827e.tar.bz2
gsoc2013-evolution-ae64f7d6bf37b586dec7b3956c5badffd21a827e.tar.lz
gsoc2013-evolution-ae64f7d6bf37b586dec7b3956c5badffd21a827e.tar.xz
gsoc2013-evolution-ae64f7d6bf37b586dec7b3956c5badffd21a827e.tar.zst
gsoc2013-evolution-ae64f7d6bf37b586dec7b3956c5badffd21a827e.zip
print quoted text in italic
2002-01-30 Radek Doulik <rodo@ximian.com> * mail-format.c (handle_text_plain_flowed): print quoted text in italic svn path=/trunk/; revision=15530
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-format.c11
2 files changed, 10 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 2547011c7a..b8f2c02556 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-30 Radek Doulik <rodo@ximian.com>
+
+ * mail-format.c (handle_text_plain_flowed): print quoted text in
+ italic
+
2002-01-30 Not Zed <NotZed@Ximian.com>
* component-factory.c (create_component): re-enable popup menu.
diff --git a/mail/mail-format.c b/mail/mail-format.c
index ea200f5f30..ff0bfd2c63 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -1260,10 +1260,6 @@ handle_text_plain_flowed (char *buf, MailDisplay *md, GtkHTML *html, GtkHTMLStre
int prevquoting = 0, quoting, len, br_pending = 0;
guint32 citation_color = mail_config_get_citation_color ();
- /* When printing, do citations in black -- grey tends to be hard to read. */
- if (md->printing)
- citation_color = 0xffffff;
-
mail_html_write (html, stream,
"\n<!-- text/plain, flowed -->\n"
"<table cellspacing=0 cellpadding=10 width=\"100%\"><tr><td>\n<tt>\n");
@@ -1279,7 +1275,10 @@ handle_text_plain_flowed (char *buf, MailDisplay *md, GtkHTML *html, GtkHTMLStre
quoting++;
if (quoting != prevquoting) {
if (prevquoting == 0) {
- gtk_html_stream_printf (stream, "<font color=\"#%06x\">", citation_color);
+ if (md->printing)
+ mail_html_write (html, stream, "<i>");
+ else
+ gtk_html_stream_printf (stream, "<font color=\"#%06x\">", citation_color);
if (br_pending)
br_pending--;
}
@@ -1292,7 +1291,7 @@ handle_text_plain_flowed (char *buf, MailDisplay *md, GtkHTML *html, GtkHTMLStre
prevquoting--;
}
if (quoting == 0) {
- mail_html_write (html, stream, "</font>\n");
+ mail_html_write (html, stream, md->printing ? "</i>" : "</font>\n");
if (br_pending)
br_pending--;
}