diff options
author | Philip Langdale <philipl@cloudera.com> | 2013-01-04 13:56:55 -0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2013-01-11 20:32:00 -0800 |
commit | ec52ff827e67952ee10b54c5217d775ccb6a5f59 (patch) | |
tree | f3f319ae6fa0db3dc8aafb1a9e8a81437a155197 | |
parent | 53863b515e3748354d45d204b5fcca878222342a (diff) | |
download | gvfs-ec52ff827e67952ee10b54c5217d775ccb6a5f59.tar.gz |
MTP: Fix regression in thumbnail icon handling.
The preview icon and the main icon shouldn't get mixed up...
-rw-r--r-- | daemon/gvfsbackendmtp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c index 245916d9..209118df 100644 --- a/daemon/gvfsbackendmtp.c +++ b/daemon/gvfsbackendmtp.c @@ -759,17 +759,18 @@ get_file_info (GVfsBackend *backend, LIBMTP_FILETYPE_IS_VIDEO (file->filetype) || LIBMTP_FILETYPE_IS_AUDIOVIDEO (file->filetype)) { + GIcon *preview; char *icon_id; GMountSpec *mount_spec; mount_spec = g_vfs_backend_get_mount_spec (backend); icon_id = g_strdup_printf ("%u", file->item_id); - icon = g_vfs_icon_new (mount_spec, - icon_id); + preview = g_vfs_icon_new (mount_spec, + icon_id); g_file_info_set_attribute_object (info, G_FILE_ATTRIBUTE_PREVIEW_ICON, - G_OBJECT (icon)); - g_object_unref (icon); + G_OBJECT (preview)); + g_object_unref (preview); g_free (icon_id); } #endif |