aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorFridrich Strba <fridrich.strba@bluewin.ch>2010-03-11 18:33:55 +0800
committerFridrich Strba <fridrich.strba@bluewin.ch>2010-03-11 18:33:55 +0800
commit38f11c946e07c2453d02ee5bff131566618cb3ca (patch)
tree60f1b34eea516f4bc8a7352ff31850f30561bb77 /mail
parent594dc83bc0b17b2db1bd9573ab1dd588e0ce98b9 (diff)
downloadgsoc2013-evolution-38f11c946e07c2453d02ee5bff131566618cb3ca.tar
gsoc2013-evolution-38f11c946e07c2453d02ee5bff131566618cb3ca.tar.gz
gsoc2013-evolution-38f11c946e07c2453d02ee5bff131566618cb3ca.tar.bz2
gsoc2013-evolution-38f11c946e07c2453d02ee5bff131566618cb3ca.tar.lz
gsoc2013-evolution-38f11c946e07c2453d02ee5bff131566618cb3ca.tar.xz
gsoc2013-evolution-38f11c946e07c2453d02ee5bff131566618cb3ca.tar.zst
gsoc2013-evolution-38f11c946e07c2453d02ee5bff131566618cb3ca.zip
Work-around a problem with urls on windows
Diffstat (limited to 'mail')
-rw-r--r--mail/em-format-html.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 60382f259e..26c6f92ff3 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -2301,23 +2301,33 @@ efh_format_address (EMFormatHTML *efh, GString *out, struct _camel_header_addres
if (!strcmp (field, _("To"))) {
g_string_append (out, "<a href=\"##TO##\">...</a>");
+#ifdef G_OS_WIN32
+ str = g_strdup_printf ("<a href=\"##TO##\">+</a> ");
+#else
str = g_strdup_printf ("<a href=\"##TO##\"><img src=\"%s/plus.png\" /></a> ", evolution_imagesdir);
-
+#endif
g_free(evolution_imagesdir);
return str;
}
else if (!strcmp (field, _("Cc"))) {
g_string_append (out, "<a href=\"##CC##\">...</a>");
+#ifdef G_OS_WIN32
+ str = g_strdup_printf ("<a href=\"##CC##\">+</a> ");
+#else
str = g_strdup_printf ("<a href=\"##CC##\"><img src=\"%s/plus.png\" /></a> ", evolution_imagesdir);
-
+#endif
g_free(evolution_imagesdir);
return str;
}
else if (!strcmp (field, _("Bcc"))) {
g_string_append (out, "<a href=\"##BCC##\">...</a>");
+#ifdef G_OS_WIN32
+ str = g_strdup_printf ("<a href=\"##BCC##\">+</a> ");
+#else
str = g_strdup_printf ("<a href=\"##BCC##\"><img src=\"%s/plus.png\" /></a> ", evolution_imagesdir);
+#endif
g_free(evolution_imagesdir);
return str;
@@ -2331,13 +2341,25 @@ efh_format_address (EMFormatHTML *efh, GString *out, struct _camel_header_addres
gchar * evolution_imagesdir = g_filename_to_uri(EVOLUTION_IMAGESDIR, NULL, NULL);
if (!strcmp (field, _("To"))) {
+#ifdef G_OS_WIN32
+ str = g_strdup_printf ("<a href=\"##TO##\">-</a> ");
+#else
str = g_strdup_printf ("<a href=\"##TO##\"><img src=\"%s/minus.png\" /></a> ", evolution_imagesdir);
+#endif
}
else if (!strcmp (field, _("Cc"))) {
+#ifdef G_OS_WIN32
+ str = g_strdup_printf ("<a href=\"##CC##\">-</a> ");
+#else
str = g_strdup_printf ("<a href=\"##CC##\"><img src=\"%s/minus.png\" /></a> ", evolution_imagesdir);
+#endif
}
else if (!strcmp (field, _("Bcc"))) {
+#ifdef G_OS_WIN32
+ str = g_strdup_printf ("<a href=\"##BCC##\">-</a> ");
+#else
str = g_strdup_printf ("<a href=\"##BCC##\"><img src=\"%s/minus.png\" /></a> ", evolution_imagesdir);
+#endif
}
g_free(evolution_imagesdir);