preferences: Fix MB/MiB confusion

NAUTILUS_PREFERENCES_FILE_THUMBNAIL_LIMIT really uses MiB as its unit,
not MB as we multiply its value by 1024*1024 (MEGA_TO_BASE_RATE) in
thumbnail_limit_changed_callback(). This commit changes
MEGA_TO_BASE_RATE and its maximum value so that it shows a number using
MB unit as advertised.
This commit is contained in:
Christophe Fergeau 2018-03-24 13:09:47 +01:00
parent 1358dc6beb
commit 85715707b1
2 changed files with 2 additions and 2 deletions

View file

@ -158,7 +158,7 @@
<description>Speed trade-off for when to show a file as a thumbnail. If set to “always” then always thumbnail, even if the folder is on a remote server. If set to “local-only” then only show thumbnails for local file systems. If set to “never” then never bother to thumbnail files, just use a generic icon. Despite what the name may suggest, this applies to any previewable file type.</description>
</key>
<key type="t" name="thumbnail-limit">
<range max="4096"/>
<range max="5000"/>
<default>10</default>
<summary>Maximum image size for thumbnailing</summary>
<description>Images over this size (in megabytes) wont be thumbnailed. The purpose of this setting is to avoid thumbnailing large images that may take a long time to load or use lots of memory.</description>

View file

@ -85,7 +85,7 @@
#define DEBUG_REF_PRINTF printf
#endif
#define MEGA_TO_BASE_RATE 1048576
#define MEGA_TO_BASE_RATE 1000000
/* Files that start with these characters sort after files that don't. */
#define SORT_LAST_CHAR1 '.'