[gvfs] backend: Fix querying of thumbnail::failed attribute
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] backend: Fix querying of thumbnail::failed attribute
- Date: Fri, 8 Dec 2017 13:11:31 +0000 (UTC)
commit ebc61e107398704b69fb326b9fcece81a3be9e70
Author: Ondrej Holy <oholy redhat com>
Date: Thu Dec 7 13:42:45 2017 +0100
backend: Fix querying of thumbnail::failed attribute
The thumbnail::failed would previously only be set if thumbnail::path
was included in the query, so querying for just thumbnail::failed
would return no results. This fixes the behaviour of "gio info -a
thumbnail::failed URI".
https://bugzilla.gnome.org/show_bug.cgi?id=791325
daemon/gvfsbackend.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackend.c b/daemon/gvfsbackend.c
index 0ba1988..b909603 100644
--- a/daemon/gvfsbackend.c
+++ b/daemon/gvfsbackend.c
@@ -583,8 +583,10 @@ g_vfs_backend_add_auto_info (GVfsBackend *backend,
}
if (uri != NULL &&
- g_file_attribute_matcher_matches (matcher,
- G_FILE_ATTRIBUTE_THUMBNAIL_PATH))
+ (g_file_attribute_matcher_matches (matcher,
+ G_FILE_ATTRIBUTE_THUMBNAIL_PATH) ||
+ g_file_attribute_matcher_matches (matcher,
+ G_FILE_ATTRIBUTE_THUMBNAILING_FAILED)))
get_thumbnail_attributes (uri, info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]