aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-04-26 17:14:35 +0800
committerMilan Crha <mcrha@redhat.com>2012-04-26 17:14:35 +0800
commit3eecc1b71241ef475cf3d9c7bd86aa9e585c59a7 (patch)
tree6d5155b2824090664ae548cb0fa1f567bae05f8a /widgets
parentb35df8f30c8e794a51136dd1abac287cff908a83 (diff)
downloadgsoc2013-evolution-3eecc1b71241ef475cf3d9c7bd86aa9e585c59a7.tar
gsoc2013-evolution-3eecc1b71241ef475cf3d9c7bd86aa9e585c59a7.tar.gz
gsoc2013-evolution-3eecc1b71241ef475cf3d9c7bd86aa9e585c59a7.tar.bz2
gsoc2013-evolution-3eecc1b71241ef475cf3d9c7bd86aa9e585c59a7.tar.lz
gsoc2013-evolution-3eecc1b71241ef475cf3d9c7bd86aa9e585c59a7.tar.xz
gsoc2013-evolution-3eecc1b71241ef475cf3d9c7bd86aa9e585c59a7.tar.zst
gsoc2013-evolution-3eecc1b71241ef475cf3d9c7bd86aa9e585c59a7.zip
Bug #674701 - Clicking address in preview composes to default account
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-web-view.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index c5b65337fb..dcf07dab04 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -1108,6 +1108,15 @@ web_view_link_clicked (EWebView *web_view,
{
gpointer parent;
+ if (uri && g_ascii_strncasecmp (uri, "mailto:", 7) == 0) {
+ gboolean handled = FALSE;
+
+ g_signal_emit (web_view, signals[PROCESS_MAILTO], 0, uri, &handled);
+
+ if (handled)
+ return;
+ }
+
parent = gtk_widget_get_toplevel (GTK_WIDGET (web_view));
parent = gtk_widget_is_toplevel (parent) ? parent : NULL;