[evolution] Bug #627176 - Do not spawn other process when clicking mailto: uri
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #627176 - Do not spawn other process when clicking mailto: uri
- Date: Thu, 2 Dec 2010 12:19:25 +0000 (UTC)
commit cda5e5498b457c2f3bfb939a0093a477500312b2
Author: Milan Crha <mcrha redhat com>
Date: Thu Dec 2 13:18:48 2010 +0100
Bug #627176 - Do not spawn other process when clicking mailto: uri
mail/e-mail-display.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index 58f4824..3060874 100644
--- a/mail/e-mail-display.c
+++ b/mail/e-mail-display.c
@@ -266,6 +266,14 @@ mail_display_link_clicked (GtkHTML *html,
priv->formatter->header_wrap_flags = flags;
em_format_queue_redraw (EM_FORMAT (priv->formatter));
+ } else if (g_ascii_strncasecmp (uri, "mailto:", 7) == 0) {
+ EMFormat *format = EM_FORMAT (priv->formatter);
+ CamelFolder *folder = NULL;
+
+ if (format && format->folder)
+ folder = format->folder;
+
+ em_utils_compose_new_message_with_mailto (e_shell_get_default (), uri, folder ? camel_folder_get_uri (folder) : NULL);
} else if (*uri == '#')
gtk_html_jump_to_anchor (html, uri + 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]