[gthumb] Use g_content_type_is_a instead of gnome_vfs_mime_type_get_equivalence
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Use g_content_type_is_a instead of gnome_vfs_mime_type_get_equivalence
- Date: Wed, 22 Apr 2009 15:29:11 -0400 (EDT)
commit 78a75910ee84abbcb856a441c3686182bd99824f
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Wed Apr 22 15:20:52 2009 -0400
Use g_content_type_is_a instead of gnome_vfs_mime_type_get_equivalence
---
libgthumb/file-utils.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libgthumb/file-utils.c b/libgthumb/file-utils.c
index b5f5d9f..74d5691 100644
--- a/libgthumb/file-utils.c
+++ b/libgthumb/file-utils.c
@@ -831,8 +831,7 @@ mime_type_is_raw (const char *mime_type)
return mime_type_is (mime_type, "application/x-crw") /* ? */
|| mime_type_is (mime_type, "image/x-raw") /* mimelnk */
|| mime_type_is (mime_type, "image/x-dcraw") /* freedesktop.org.xml */
- || (gnome_vfs_mime_type_get_equivalence (mime_type, "image/x-dcraw")
- != GNOME_VFS_MIME_UNRELATED); /* freedesktop.org.xml - this should
+ || g_content_type_is_a (mime_type, "image/x-dcraw"); /* freedesktop.org.xml - this should
catch most RAW formats, which are
registered as sub-classes of
image/x-dcraw */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]