diff options
author | Larry Ewing <lewing@src.gnome.org> | 2003-01-19 00:56:32 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2003-01-19 00:56:32 +0800 |
commit | 798c3cf8f02dfd96b8520b3e0dff833f42bc9c35 (patch) | |
tree | c40e4ccee704666a0ffa7f842a0606020b5d9a3f /mail | |
parent | 8f44e1e0f95a02cc1c679f105d2aa8f6533cecf1 (diff) | |
download | gsoc2013-evolution-798c3cf8f02dfd96b8520b3e0dff833f42bc9c35.tar gsoc2013-evolution-798c3cf8f02dfd96b8520b3e0dff833f42bc9c35.tar.gz gsoc2013-evolution-798c3cf8f02dfd96b8520b3e0dff833f42bc9c35.tar.bz2 gsoc2013-evolution-798c3cf8f02dfd96b8520b3e0dff833f42bc9c35.tar.lz gsoc2013-evolution-798c3cf8f02dfd96b8520b3e0dff833f42bc9c35.tar.xz gsoc2013-evolution-798c3cf8f02dfd96b8520b3e0dff833f42bc9c35.tar.zst gsoc2013-evolution-798c3cf8f02dfd96b8520b3e0dff833f42bc9c35.zip |
(on_link_clicked): call gnome_url_show with all its arguments so
that it actually does something. Also pass news and nntp urls to
gnome_url_show so that they can be handled properly.
svn path=/trunk/; revision=19515
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 3 | ||||
-rw-r--r-- | mail/mail-display.c | 15 |
2 files changed, 13 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 342d2a3661..00a8dc0893 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -2,6 +2,9 @@ * mail-display.c (html_button_press_event): make the event handlers return FALSE so that gtkhtml can process the events. + (on_link_clicked): call gnome_url_show with all its arguments so + that it actually does something. Also pass news and nntp urls to + gnome_url_show so that they can be handled properly. 2003-01-17 Larry Ewing <lewing@ximian.com> diff --git a/mail/mail-display.c b/mail/mail-display.c index e5ccf7c24a..e156f72243 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -296,14 +296,19 @@ mail_display_jump_to_anchor (MailDisplay *md, const char *url) static void on_link_clicked (GtkHTML *html, const char *url, MailDisplay *md) { - if (!strncasecmp (url, "news:", 5) || !strncasecmp (url, "nntp:", 5)) { - g_warning ("Can't handle news URLs yet."); - } else if (!strncasecmp (url, "mailto:", 7)) { + + if (!strncasecmp (url, "mailto:", 7)) { send_to_url (url); } else if (*url == '#') { mail_display_jump_to_anchor (md, url); } else { - gnome_url_show (url); + GError *err = NULL; + gnome_url_show (url, err); + + if (err) { + g_warning ("gnome_url_show: %s", err->message); + g_error_free (err); + } } } @@ -823,7 +828,7 @@ save_url (MailDisplay *md, const char *url) g_return_val_if_fail (urls != NULL, NULL); /* See if it's some piece of cached data if it is then pretend it - * is a mime part so that we can use the mime part saveing routines. + * is a mime part so that we can use the mime part saving routines. * It is gross but it keeps duplicated code to a minimum and helps * out with ref counting and the like. */ |