summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-file.c')
-rw-r--r--libcaja-private/caja-file.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
index f4807424..3f228b0a 100644
--- a/libcaja-private/caja-file.c
+++ b/libcaja-private/caja-file.c
@@ -4517,13 +4517,15 @@ caja_file_get_icon (CajaFile *file,
return icon;
}
- if (flags & CAJA_FILE_ICON_FLAGS_FORCE_THUMBNAIL_SIZE) {
- modified_size = size * scale;
- } else {
- modified_size = size * scale * cached_thumbnail_size / CAJA_ICON_SIZE_STANDARD;
- }
if (flags & CAJA_FILE_ICON_FLAGS_USE_THUMBNAILS &&
caja_file_should_show_thumbnail (file)) {
+
+ if (flags & CAJA_FILE_ICON_FLAGS_FORCE_THUMBNAIL_SIZE) {
+ modified_size = size * scale;
+ } else {
+ modified_size = size * scale * cached_thumbnail_size / CAJA_ICON_SIZE_STANDARD;
+ }
+
if (file->details->thumbnail) {
int w, h, s;
double thumb_scale;
@@ -4595,10 +4597,6 @@ caja_file_get_icon (CajaFile *file,
if (gicon) {
icon = caja_icon_info_lookup (gicon, size, scale);
- if (caja_icon_info_is_fallback (icon)) {
- g_object_unref (icon);
- icon = caja_icon_info_lookup (get_default_file_icon (flags), size, scale);
- }
g_object_unref (gicon);
return icon;
} else {