summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendgphoto2.c
diff options
context:
space:
mode:
authorMichael Chudobiak <mjc@avtechpulse.com>2009-10-01 18:39:23 +0200
committerChristian Kellner <gicmo@gnome.org>2009-10-01 18:42:08 +0200
commit3df23252bc81d06ea8dbc8815140ac1f10012d45 (patch)
tree648e2e4185675a430d1d5b3dc25b9d3690423212 /daemon/gvfsbackendgphoto2.c
parent5ce0a03107246b6fce7314ad2bac01c426ca85c1 (diff)
downloadgvfs-3df23252bc81d06ea8dbc8815140ac1f10012d45.tar.gz
[gphoto] Add fast mime-type information
See https://bugzilla.gnome.org/show_bug.cgi?id=594928
Diffstat (limited to 'daemon/gvfsbackendgphoto2.c')
-rw-r--r--daemon/gvfsbackendgphoto2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/gvfsbackendgphoto2.c b/daemon/gvfsbackendgphoto2.c
index c8177f36..3edd26f3 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"))