From 38f11c946e07c2453d02ee5bff131566618cb3ca Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 11 Mar 2010 11:33:55 +0100 Subject: Work-around a problem with urls on windows --- mail/em-format-html.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'mail') 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, "..."); +#ifdef G_OS_WIN32 + str = g_strdup_printf ("+ "); +#else str = g_strdup_printf (" ", evolution_imagesdir); - +#endif g_free(evolution_imagesdir); return str; } else if (!strcmp (field, _("Cc"))) { g_string_append (out, "..."); +#ifdef G_OS_WIN32 + str = g_strdup_printf ("+ "); +#else str = g_strdup_printf (" ", evolution_imagesdir); - +#endif g_free(evolution_imagesdir); return str; } else if (!strcmp (field, _("Bcc"))) { g_string_append (out, "..."); +#ifdef G_OS_WIN32 + str = g_strdup_printf ("+ "); +#else str = g_strdup_printf (" ", 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 ("- "); +#else str = g_strdup_printf (" ", evolution_imagesdir); +#endif } else if (!strcmp (field, _("Cc"))) { +#ifdef G_OS_WIN32 + str = g_strdup_printf ("- "); +#else str = g_strdup_printf (" ", evolution_imagesdir); +#endif } else if (!strcmp (field, _("Bcc"))) { +#ifdef G_OS_WIN32 + str = g_strdup_printf ("- "); +#else str = g_strdup_printf (" ", evolution_imagesdir); +#endif } g_free(evolution_imagesdir); -- cgit