diff options
author | Dan Winship <danw@src.gnome.org> | 2000-07-06 03:47:35 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-07-06 03:47:35 +0800 |
commit | 53faeaabcc20626b63d0a815f06851aa97152dcd (patch) | |
tree | 4c55776503d9b2c6bdd8e68dbc282eff9ba12f3a /mail/mail-display.c | |
parent | 0837fc409943cafbf57dcd51525b9b7f68148639 (diff) | |
download | gsoc2013-evolution-53faeaabcc20626b63d0a815f06851aa97152dcd.tar gsoc2013-evolution-53faeaabcc20626b63d0a815f06851aa97152dcd.tar.gz gsoc2013-evolution-53faeaabcc20626b63d0a815f06851aa97152dcd.tar.bz2 gsoc2013-evolution-53faeaabcc20626b63d0a815f06851aa97152dcd.tar.lz gsoc2013-evolution-53faeaabcc20626b63d0a815f06851aa97152dcd.tar.xz gsoc2013-evolution-53faeaabcc20626b63d0a815f06851aa97152dcd.tar.zst gsoc2013-evolution-53faeaabcc20626b63d0a815f06851aa97152dcd.zip |
Use the gnomevfs sniff buffer interface to try to identify the MIME type
* mail-identify.c (mail_identify_mime_part): Use the gnomevfs
sniff buffer interface to try to identify the MIME type when
everything else fails.
* mail-display.c (on_object_requested):
* mail-format.c (lookup_handler, handle_undisplayable,
handle_audio): s/gnome_mime/gnome_vfs_mime/
* Makefile.am: Add gnomevfs stuff
svn path=/trunk/; revision=3893
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index cdd701ea4b..06a319372a 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -22,6 +22,7 @@ #include <bonobo.h> #include <libgnorba/gnorba.h> #include <bonobo/bonobo-stream-memory.h> +#include <libgnomevfs/gnome-vfs-mime-info.h> #define PARENT_TYPE (gtk_vbox_get_type ()) @@ -207,12 +208,13 @@ on_object_requested (GtkHTML *html, GtkHTMLEmbedded *eb, gpointer data) g_return_val_if_fail (CAMEL_IS_MEDIUM (medium), FALSE); wrapper = camel_medium_get_content_object (medium); - goad_id = gnome_mime_get_value (eb->type, "bonobo-goad-id"); + goad_id = gnome_vfs_mime_get_value (eb->type, "bonobo-goad-id"); if (!goad_id) { char *main_type = g_strndup (eb->type, strcspn (eb->type, "/")); - goad_id = gnome_mime_get_value (main_type, "bonobo-goad-id"); + goad_id = gnome_vfs_mime_get_value (main_type, + "bonobo-goad-id"); g_free (main_type); } if (!goad_id) |