[gvfs] [AFC] Also set fast mime-type



commit 4685f9e982f4c6884a21a0bd80d512a4ea0162db
Author: Christian Kellner <gicmo gnome org>
Date:   Fri Oct 9 12:48:24 2009 +0200

    [AFC] Also set fast mime-type

 daemon/gvfsbackendafc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index e4e1da0..29c1ed1 100644
--- a/daemon/gvfsbackendafc.c
+++ b/daemon/gvfsbackendafc.c
@@ -834,7 +834,10 @@ g_vfs_backend_afc_set_info_from_afcinfo (GVfsBackendAfc *self,
         }
 
       if (content_type)
-        g_file_info_set_content_type (info, content_type);
+        {
+          g_file_info_set_content_type (info, content_type);
+          g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE, content_type);
+        }
 
       if (icon == NULL)
         icon = g_themed_icon_new ("text-x-generic");



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