diff options
author | Dan Winship <danw@src.gnome.org> | 2002-09-26 06:56:23 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-09-26 06:56:23 +0800 |
commit | 20c4b44474062abd353bc10966b5f7f4026d1336 (patch) | |
tree | 94ab448c2f6ff82bbbf2f5ebae85f4f6e4d39a3c /mail/mail-display.c | |
parent | fec2c01178c64fc628b8638caee3b6712be9a442 (diff) | |
download | gsoc2013-evolution-20c4b44474062abd353bc10966b5f7f4026d1336.tar gsoc2013-evolution-20c4b44474062abd353bc10966b5f7f4026d1336.tar.gz gsoc2013-evolution-20c4b44474062abd353bc10966b5f7f4026d1336.tar.bz2 gsoc2013-evolution-20c4b44474062abd353bc10966b5f7f4026d1336.tar.lz gsoc2013-evolution-20c4b44474062abd353bc10966b5f7f4026d1336.tar.xz gsoc2013-evolution-20c4b44474062abd353bc10966b5f7f4026d1336.tar.zst gsoc2013-evolution-20c4b44474062abd353bc10966b5f7f4026d1336.zip |
Add a margin around the "flag for followup" table so it lines up with
* mail-display.c (mail_display_render): Add a margin around the
"flag for followup" table so it lines up with everything else.
Also, don't add "at your earliest convenience" after the flag if
there's no date set, since that doesn't make any sense for half of
the flags. ("For Your Information at your earliest convenience").
svn path=/trunk/; revision=18226
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index 80e9fa93c3..4865c11909 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -1750,14 +1750,17 @@ mail_display_render (MailDisplay *md, GtkHTML *html, gboolean reset_scroll) e_strftime_fix_am_pm (due_date, sizeof (due_date), _("by %B %d, %Y, %l:%M %P"), &due); } else { - snprintf (due_date, sizeof (due_date), "%s", _("at your earliest convenience")); + due_date[0] = '\0'; } gtk_html_stream_printf (stream, "<font color=\"#%s\">" - "<table cellspacing=1 cellpadding=1 bgcolor=\"#000000\"><tr><td>" - "<table cellspacing=0 bgcolor=\"#%s\" cellpadding=2 cellspacing=2>" + "<table width=\"100%%\" cellpadding=0 cellspacing=0><tr><td colspan=3 height=10></td></tr>" + "<tr><td width=10></td><td>" + "<table cellspacing=1 cellpadding=1 bgcolor=\"#000000\" width=\"100%%\"><tr><td>" + "<table cellspacing=0 bgcolor=\"#%s\" cellpadding=2 cellspacing=2 width=\"100%%\">" "<tr><td align=\"left\" width=20><img src=\"%s\" align=\"middle\"></td>" - "<td>%s%s%s%s %s</td></table></td></tr></table></font>", fontcolor, bgcolor, + "<td>%s%s%s%s %s</td></table></td></tr></table>" + "</td><td width=10></td></tr></table></font>", fontcolor, bgcolor, mail_display_get_url_for_icon (md, EVOLUTION_IMAGES "/flag-for-followup-16.png"), overdue ? "<b>" : "", overdue, overdue ? "</b> " : "", flag, due_date); |