[gvfs/gnome-2-28] [gphoto] Add fast mime-type information



commit cd84325d8619f7d1bb7a27bea915948c2a4d764e
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
    (cherry picked from commit 3df23252bc81d06ea8dbc8815140ac1f10012d45)

 daemon/gvfsbackendgphoto2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendgphoto2.c b/daemon/gvfsbackendgphoto2.c
index addfc87..45d030a 100644
--- a/daemon/gvfsbackendgphoto2.c
+++ b/daemon/gvfsbackendgphoto2.c
@@ -1242,6 +1242,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]