diff options
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 314f7f8ebf..f5b639dde0 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -63,6 +63,7 @@ #include <libgnome/gnome-exec.h> #include <libgnome/gnome-help.h> +#include <libgnome/gnome-url.h> #include <glib/gi18n.h> #include <libgnomeui/gnome-uidefs.h> #include <libgnomeui/gnome-window-icon.h> @@ -6630,6 +6631,26 @@ e_msg_composer_url_requested (EMsgComposer *composer, gchar *url) return part; } +void +e_msg_composer_link_clicked (EMsgComposer *composer, const gchar *url) +{ + g_return_if_fail (composer != NULL); + + if (url && *url && + g_ascii_strncasecmp (url, "mailto:", 7) && + g_ascii_strncasecmp (url, "thismessage:", 12) && + g_ascii_strncasecmp (url, "cid:", 4)) { + GError *err = NULL; + + gnome_url_show (url, &err); + + if (err) { + g_warning ("gnome_url_show: %s", err->message); + g_error_free (err); + } + } +} + EMsgComposerHdrs* e_msg_composer_get_hdrs (EMsgComposer *composer) { |