[gvfs] [gphoto] Add fast mime-type information



commit 3df23252bc81d06ea8dbc8815140ac1f10012d45
Author: Michael Chudobiak <mjc avtechpulse com>
Date:   Thu Oct 1 18:39:23 2009 +0200

    [gphoto] Add fast mime-type information
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=594928

 daemon/gvfsbackendgphoto2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendgphoto2.c b/daemon/gvfsbackendgphoto2.c
index c8177f3..3edd26f 100644
--- a/daemon/gvfsbackendgphoto2.c
+++ b/daemon/gvfsbackendgphoto2.c
@@ -1231,6 +1231,7 @@ file_get_info (GVfsBackendGphoto2 *gphoto2_backend,
   if (mime_type == NULL)
     mime_type = g_strdup ("application/octet-stream");
   g_file_info_set_content_type (info, mime_type);
+  g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE, mime_type);
 
   /* we offer thumbnails for both pics and video (see bgo #585853) */
   if (g_str_has_prefix (mime_type, "image") || g_str_has_prefix (mime_type, "video"))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]