aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-28 03:03:54 +0800
committerDan Winship <danw@src.gnome.org>2000-04-28 03:03:54 +0800
commit397a851038f09c2a40ac70f8dbf04308622c2c02 (patch)
tree3ebae9bed4ffc72c9a40764a07b2d545da268d9b /mail/mail-display.c
parentb9d26cb85f496552e4eb6cbd9834cf33e29e9e95 (diff)
downloadgsoc2013-evolution-397a851038f09c2a40ac70f8dbf04308622c2c02.tar
gsoc2013-evolution-397a851038f09c2a40ac70f8dbf04308622c2c02.tar.gz
gsoc2013-evolution-397a851038f09c2a40ac70f8dbf04308622c2c02.tar.bz2
gsoc2013-evolution-397a851038f09c2a40ac70f8dbf04308622c2c02.tar.lz
gsoc2013-evolution-397a851038f09c2a40ac70f8dbf04308622c2c02.tar.xz
gsoc2013-evolution-397a851038f09c2a40ac70f8dbf04308622c2c02.tar.zst
gsoc2013-evolution-397a851038f09c2a40ac70f8dbf04308622c2c02.zip
Move text_to_html to e-util.
* mail-format.c: Move text_to_html to e-util. * mail-ops.c (send_to_url): New routine. Thin wrapper for e_msg_composer_new_from_url. * mail-display.c (on_link_clicked): print a warning for news or nntp URLs (which we'll deal with some day), and call send_to_url for mailto URLs. svn path=/trunk/; revision=2664
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index d7ba658241..036ebad60b 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -13,6 +13,7 @@
#include "e-util/e-util.h"
#include "mail-display.h"
#include "mail-format.h"
+#include "mail-ops.h"
#define PARENT_TYPE (gtk_vbox_get_type ())
@@ -37,7 +38,13 @@ cid_stream (const char *cid, CamelMimeMessage *message)
static void
on_link_clicked (GtkHTML *html, const char *url, gpointer user_data)
{
- gnome_url_show (url);
+ if (!strncasecmp (url, "news:", 5) ||
+ !strncasecmp (url, "nntp:", 5))
+ g_warning ("Can't handle news URLs yet.");
+ else if (!strncasecmp (url, "mailto:", 7))
+ send_to_url (url);
+ else
+ gnome_url_show (url);
}
static void