aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-03-18 00:45:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-03-18 00:45:04 +0800
commite1328c5de8a59be3467366b7376ae7c3696929bf (patch)
treeb598fa91119bad508607985d4ac7bd0f39793272 /mail/mail-display.c
parentef2cd88d7ab95b066599650d8bab0f167897c37a (diff)
downloadgsoc2013-evolution-e1328c5de8a59be3467366b7376ae7c3696929bf.tar
gsoc2013-evolution-e1328c5de8a59be3467366b7376ae7c3696929bf.tar.gz
gsoc2013-evolution-e1328c5de8a59be3467366b7376ae7c3696929bf.tar.bz2
gsoc2013-evolution-e1328c5de8a59be3467366b7376ae7c3696929bf.tar.lz
gsoc2013-evolution-e1328c5de8a59be3467366b7376ae7c3696929bf.tar.xz
gsoc2013-evolution-e1328c5de8a59be3467366b7376ae7c3696929bf.tar.zst
gsoc2013-evolution-e1328c5de8a59be3467366b7376ae7c3696929bf.zip
Lookup the handler for the type. If we don't have a registered handler or
2003-03-17 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (do_external_viewer): Lookup the handler for the type. If we don't have a registered handler or if the registered handler is not meant to be handled via a bonobo component, don't use a bonobo component. * mail-format.c (mail_lookup_handler): If we register a new handler that is to be handled by a bonobo component, set handler->is_bonobo to TRUE. svn path=/trunk/; revision=20311
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 83387bde92..9ac15b4672 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -1081,6 +1081,11 @@ do_external_viewer (GtkHTML *html, GtkHTMLEmbedded *eb,
CORBA_Environment ev;
CamelStreamMem *cstream;
BonoboStream *bstream;
+ MailMimeHandler *handler;
+
+ handler = mail_lookup_handler (eb->type);
+ if (!handler || !handler->is_bonobo)
+ return FALSE;
component = gnome_vfs_mime_get_default_component (eb->type);
if (!component)