[gvfs] [afc] Only check for a preview icon if actually requested
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gvfs] [afc] Only check for a preview icon if actually requested
- Date: Tue, 10 Nov 2009 13:35:21 +0000 (UTC)
commit cb5c88866e02ef50f0a22a7575e8b37f540978bf
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 10 13:33:21 2009 +0000
[afc] Only check for a preview icon if actually requested
Should speed up enumeration slightly.
daemon/gvfsbackendafc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index 0c34e8b..8722ca7 100644
--- a/daemon/gvfsbackendafc.c
+++ b/daemon/gvfsbackendafc.c
@@ -904,7 +904,8 @@ g_vfs_backend_afc_set_info_from_afcinfo (GVfsBackendAfc *self,
g_file_info_set_is_hidden (info, hidden);
/* Check for matching thumbnail in .MISC directory */
- if (path != NULL &&
+ if (g_file_attribute_matcher_matches (matcher, G_FILE_ATTRIBUTE_PREVIEW_ICON) &&
+ path != NULL &&
g_str_has_prefix (path, "/DCIM/") &&
hidden == FALSE &&
basename != NULL &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]