aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-03-01 00:59:40 +0800
committerMilan Crha <mcrha@redhat.com>2011-03-01 00:59:40 +0800
commit7c993081e44e39fce79e362136e79b1037a41d07 (patch)
tree074b9e42755171c12e6e88ea90c27efa06efd574
parenta117ff91429fd396ad477d15e230a2d45aa2c98f (diff)
downloadgsoc2013-evolution-7c993081e44e39fce79e362136e79b1037a41d07.tar.gz
gsoc2013-evolution-7c993081e44e39fce79e362136e79b1037a41d07.tar.zst
gsoc2013-evolution-7c993081e44e39fce79e362136e79b1037a41d07.zip
Bug #641805 - Clicking links in mail composer opens URL twice
-rw-r--r--composer/e-msg-composer.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index d2d9837a45..41703561c1 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -2417,25 +2417,6 @@ msg_composer_image_uri (GtkhtmlEditor *editor,
}
static void
-msg_composer_link_clicked (GtkhtmlEditor *editor,
- const gchar *uri)
-{
- if (uri == NULL || *uri == '\0')
- return;
-
- if (g_ascii_strncasecmp (uri, "mailto:", 7) == 0)
- return;
-
- if (g_ascii_strncasecmp (uri, "thismessage:", 12) == 0)
- return;
-
- if (g_ascii_strncasecmp (uri, "cid:", 4) == 0)
- return;
-
- e_show_uri (GTK_WINDOW (editor), uri);
-}
-
-static void
msg_composer_object_deleted (GtkhtmlEditor *editor)
{
const gchar *data;
@@ -2537,7 +2518,7 @@ e_msg_composer_class_init (EMsgComposerClass *class)
editor_class->command_before = msg_composer_command_before;
editor_class->command_after = msg_composer_command_after;
editor_class->image_uri = msg_composer_image_uri;
- editor_class->link_clicked = msg_composer_link_clicked;
+ editor_class->link_clicked = NULL; /* EWebView takes care of it in link-clicked handler */
editor_class->object_deleted = msg_composer_object_deleted;
class->presend = msg_composer_presend;