[nautilus] nautilus-file: Don't show thumbnails for the first 2 zoom levels



commit 7509b3728f55de818ce3f09ca9219b996620820d
Author: Alexandru Fazakas <alex fazakas97 yahoo com>
Date:   Thu Feb 15 23:54:50 2018 +0200

    nautilus-file: Don't show thumbnails for the first 2 zoom levels
    
    For the SMALL and STANDARD icon sizes, the thumbnails barely give any useful
    information, so we shouldn't use them.
    
    This patch solves this issue by not showing thumbnails for the first 2 zoom
    levels, only for the LARGE and LARGER ones.
    
    Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/258

 src/nautilus-file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index 61a3fd904..6dd9869b7 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -5427,7 +5427,7 @@ nautilus_thumbnail_is_limited_by_zoom (int size,
 
     zoom_level = size * scale;
 
-    if (zoom_level <= NAUTILUS_LIST_ICON_SIZE_SMALL)
+    if (zoom_level <= NAUTILUS_LIST_ICON_SIZE_STANDARD)
     {
         return TRUE;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]