[gvfs/mtp-backend: 61/64] MTP: Fix regression in thumbnail icon handling.
- From: Philip Langdale <philipl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/mtp-backend: 61/64] MTP: Fix regression in thumbnail icon handling.
- Date: Sat, 12 Jan 2013 04:39:16 +0000 (UTC)
commit ec52ff827e67952ee10b54c5217d775ccb6a5f59
Author: Philip Langdale <philipl cloudera com>
Date: Fri Jan 4 13:56:55 2013 -0800
MTP: Fix regression in thumbnail icon handling.
The preview icon and the main icon shouldn't get mixed up...
daemon/gvfsbackendmtp.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 245916d..209118d 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]