[evolution] Work-around a problem with urls on windows
- From: Fridrich Strba <strba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Work-around a problem with urls on windows
- Date: Thu, 11 Mar 2010 10:34:51 +0000 (UTC)
commit 38f11c946e07c2453d02ee5bff131566618cb3ca
Author: Fridrich Strba <fridrich strba bluewin ch>
Date: Thu Mar 11 11:33:55 2010 +0100
Work-around a problem with urls on windows
mail/em-format-html.c | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 60382f2..26c6f92 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]