[evolution/gnome-2-32] 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/gnome-2-32] Bug #627176 - Do not spawn other process when clicking mailto: uri
- Date: Thu, 2 Dec 2010 12:20:17 +0000 (UTC)
commit 0e29a4877ba80e136683296f56964abcb056333b
Author: Milan Crha <mcrha redhat com>
Date: Thu Dec 2 13:19:46 2010 +0100
Bug #627176 - Do not spawn other process when clicking mailto: uri
mail/e-mail-display.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index 58f4824..1b26b30 100644
--- a/mail/e-mail-display.c
+++ b/mail/e-mail-display.c
@@ -28,6 +28,7 @@
#include "e-util/e-plugin-ui.h"
#include "mail/em-composer-utils.h"
#include "mail/em-utils.h"
+#include "mail/mail-tools.h"
#define E_MAIL_DISPLAY_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
@@ -266,6 +267,16 @@ 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);
+ gchar *folder_uri = NULL;
+
+ if (format && format->folder)
+ folder_uri = mail_tools_folder_to_url (format->folder);
+
+ em_utils_compose_new_message_with_mailto (e_shell_get_default (), uri, folder_uri);
+
+ g_free (folder_uri);
} 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]