summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-07-21 22:24:56 +0800
committerraveit65 <[email protected]>2022-07-20 18:56:05 +0200
commitf39ca526293d1fc91de9c0fa74219291cda5be99 (patch)
treebff63f58d4917f56b2063eec37e1064e816a7d34 /src
parent69b15421a01ba0c29e274f96c25dcc6e4c928b23 (diff)
downloadcaja-f39ca526293d1fc91de9c0fa74219291cda5be99.tar.bz2
caja-f39ca526293d1fc91de9c0fa74219291cda5be99.tar.xz
Show thumbnails in list view
Diffstat (limited to 'src')
-rw-r--r--src/file-manager/fm-list-model.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/file-manager/fm-list-model.c b/src/file-manager/fm-list-model.c
index 545f8ac5..ef330913 100644
--- a/src/file-manager/fm-list-model.c
+++ b/src/file-manager/fm-list-model.c
@@ -334,6 +334,7 @@ fm_list_model_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, int column
char *emblems_to_ignore[3];
int i;
cairo_surface_t *surface;
+ const char *icon_name;
zoom_level = fm_list_model_get_zoom_level_from_column_id (column);
icon_size = caja_get_icon_size_for_zoom_level (zoom_level);
@@ -407,7 +408,13 @@ fm_list_model_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, int column
gicon = emblemed_icon;
}
- icon_info = caja_icon_info_lookup (gicon, icon_size, icon_scale);
+ icon_info = caja_file_get_icon (file, icon_size, icon_scale, flags);
+ icon_name = caja_icon_info_get_used_name (icon_info);
+
+ if (icon_name != NULL) {
+ g_object_unref (icon_info);
+ icon_info = caja_icon_info_lookup (gicon, icon_size, icon_scale);
+ }
icon = caja_icon_info_get_pixbuf_at_size (icon_info, icon_size);
g_object_unref (icon_info);