aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@helixcode.com>2000-11-15 16:44:57 +0800
committerRadek Doulik <rodo@src.gnome.org>2000-11-15 16:44:57 +0800
commit7384e82aa7369af5d6aa07afd856a5f9cf1f6841 (patch)
treece0486fa8f6a55207601d51db1ecd0db5a479a24
parentfb76cad79ae9228a426fcd0e4a39d920ec17d864 (diff)
downloadgsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar.gz
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar.bz2
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar.lz
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar.xz
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar.zst
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.zip
mime_guess_type_from_file_name moved back to composer as it introduced
2000-11-15 Radek Doulik <rodo@helixcode.com> * camel-mime-utils.c: mime_guess_type_from_file_name moved back to composer as it introduced unwanted VFS dependency svn path=/trunk/; revision=6578
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-mime-utils.c19
-rw-r--r--camel/camel-mime-utils.h3
3 files changed, 5 insertions, 22 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 9d8c83e245..f0385898b4 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-15 Radek Doulik <rodo@helixcode.com>
+
+ * camel-mime-utils.c: mime_guess_type_from_file_name moved back to
+ composer as it introduced unwanted VFS dependency
+
2000-11-15 Not Zed <NotZed@HelixCode.com>
* providers/Makefile.am: Removed local again, not quite ready.
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 8db0e23fe4..fb3842829e 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -3113,22 +3113,3 @@ header_msgid_generate (void)
return g_strdup_printf ("%d.%d.%d.camel@%s.%s", (gint) time (NULL), getpid (), count++,
(host && *host) ? host : "unknown.host", (domain && *domain) ? domain : "unknown.domain");
}
-
-gchar *
-mime_guess_type_from_file_name (const gchar *file_name)
-{
- GnomeVFSFileInfo info;
- GnomeVFSResult result;
-
- result = gnome_vfs_get_file_info (file_name, &info,
- GNOME_VFS_FILE_INFO_GET_MIME_TYPE |
- GNOME_VFS_FILE_INFO_FOLLOW_LINKS);
- if (result == GNOME_VFS_OK) {
- gchar *type;
-
- type = g_strdup (gnome_vfs_file_info_get_mime_type (&info));
- gnome_vfs_file_info_unref (&info);
- return type;
- } else
- return NULL;
-}
diff --git a/camel/camel-mime-utils.h b/camel/camel-mime-utils.h
index c5e19e667e..6f452f1ffa 100644
--- a/camel/camel-mime-utils.h
+++ b/camel/camel-mime-utils.h
@@ -186,7 +186,4 @@ int quoted_decode_step(unsigned char *in, int len, unsigned char *out, int *save
int quoted_encode_step(unsigned char *in, int len, unsigned char *out, int *state, int *save);
int quoted_encode_close(unsigned char *in, int len, unsigned char *out, int *state, int *save);
-gchar * mime_guess_type_from_file_name (const gchar *file_name);
-
-
#endif /* ! _CAMEL_MIME_UTILS_H */