[Xfce4-commits] [xfce/tumbler] 01/01: Test sparse files only on regular ones
noreply at xfce.org
noreply at xfce.org
Wed Sep 12 08:49:21 CEST 2018
This is an automated email from the git hooks/post-receive script.
a l i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/tumbler.
commit b833af4bb782589ad2fa6e13373b483c741924ae
Author: Ali Abdallah <ali at xfce.org>
Date: Wed Sep 12 08:36:27 2018 +0200
Test sparse files only on regular ones
This commit fixes #14693 to allow thumbnailing of folders.
---
tumblerd/tumbler-registry.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/tumblerd/tumbler-registry.c b/tumblerd/tumbler-registry.c
index c1337af..b87e2c1 100644
--- a/tumblerd/tumbler-registry.c
+++ b/tumblerd/tumbler-registry.c
@@ -481,13 +481,14 @@ tumbler_registry_get_thumbnailer_array (TumblerRegistry *registry,
g_free (filename);
- if (!S_ISREG (sb.st_mode))
- continue;
-
- if (((TUMBLER_STAT_BLKSIZE * sb.st_blocks) / sb.st_size) < 0.8)
+ /* Test sparse files on regular ones */
+ if (S_ISREG (sb.st_mode))
{
- g_debug ("'%s' is probably a sparse file, skipping\n", tumbler_file_info_get_uri (infos[n]));
- continue;
+ if (((TUMBLER_STAT_BLKSIZE * sb.st_blocks) / sb.st_size) < 0.8)
+ {
+ g_debug ("'%s' is probably a sparse file, skipping\n", tumbler_file_info_get_uri (infos[n]));
+ continue;
+ }
}
}
else
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list