[gvfs/mtp-backend: 28/64] MTP: Small Thumbnail clean up.



commit e25233b35bbf27a6f42267bcd7831b2f5412e5c7
Author: Philip Langdale <philipl overt org>
Date:   Sat Sep 1 17:06:02 2012 -0700

    MTP: Small Thumbnail clean up.
    
    Removing the debug spew for each file with a thumbnail, and turned
    off LOCAL previews. The preview process is so costly that it should
    only be done if the user requests ALWAYS.

 daemon/gvfsbackendmtp.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 787db67..66e6551 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -512,7 +512,6 @@ get_storage_info(LIBMTP_devicestorage_t *storage, GFileInfo *info) {
   g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE, storage->FreeSpaceInBytes);
   g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_SIZE, storage->MaxCapacity);
   g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_FILESYSTEM_TYPE, "mtpfs");
-  g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW, G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL);
 }
 
 static void
@@ -547,7 +546,6 @@ get_file_info(GVfsBackend *backend, LIBMTP_mtpdevice_t *device, GFileInfo *info,
   if (LIBMTP_FILETYPE_IS_IMAGE(file->filetype) ||
       LIBMTP_FILETYPE_IS_VIDEO(file->filetype) ||
       LIBMTP_FILETYPE_IS_AUDIOVIDEO(file->filetype)) {
-    g_print("Thumbnail file: %s\n", file->filename);
 
     char *icon_id;
     GIcon *icon;



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