aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-02-04 04:07:10 +0800
committerChris Toshok <toshok@src.gnome.org>2004-02-04 04:07:10 +0800
commit781f20ac48075c6620ae8671f4877cf1f11881e2 (patch)
treea990ad847e24bc43874ffa4c934e4a5bf0866f4d
parentc0a52e03b83b47f331367d42656561073eb4e3c5 (diff)
downloadgsoc2013-evolution-781f20ac48075c6620ae8671f4877cf1f11881e2.tar
gsoc2013-evolution-781f20ac48075c6620ae8671f4877cf1f11881e2.tar.gz
gsoc2013-evolution-781f20ac48075c6620ae8671f4877cf1f11881e2.tar.bz2
gsoc2013-evolution-781f20ac48075c6620ae8671f4877cf1f11881e2.tar.lz
gsoc2013-evolution-781f20ac48075c6620ae8671f4877cf1f11881e2.tar.xz
gsoc2013-evolution-781f20ac48075c6620ae8671f4877cf1f11881e2.tar.zst
gsoc2013-evolution-781f20ac48075c6620ae8671f4877cf1f11881e2.zip
use FORCE_SLOW_MIME_TYPE so gnome-vfs actually sniffs the file contents
2004-02-03 Chris Toshok <toshok@ximian.com> * e-msg-composer.c (e_msg_composer_guess_mime_type): use FORCE_SLOW_MIME_TYPE so gnome-vfs actually sniffs the file contents before coming up with a mime type. svn path=/trunk/; revision=24594
-rw-r--r--composer/ChangeLog6
-rw-r--r--composer/e-msg-composer.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index bd82403796..6fc3cba00f 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,9 @@
+2004-02-03 Chris Toshok <toshok@ximian.com>
+
+ * e-msg-composer.c (e_msg_composer_guess_mime_type): use
+ FORCE_SLOW_MIME_TYPE so gnome-vfs actually sniffs the file
+ contents before coming up with a mime type.
+
2004-02-03 Dan Winship <danw@ximian.com>
* Makefile.am (INCLUDES): add widgets/misc
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index d6ea5bebdf..80ab2873f7 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -5116,6 +5116,7 @@ e_msg_composer_guess_mime_type (const char *file_name)
info = gnome_vfs_file_info_new ();
result = gnome_vfs_get_file_info (file_name, info,
GNOME_VFS_FILE_INFO_GET_MIME_TYPE |
+ GNOME_VFS_FILE_INFO_FORCE_SLOW_MIME_TYPE |
GNOME_VFS_FILE_INFO_FOLLOW_LINKS);
if (result == GNOME_VFS_OK) {
char *type;