summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-07-21 22:24:56 +0800
committerlukefromdc <[email protected]>2019-07-23 01:38:54 +0000
commitd5f0ffdf4e7b08eb5399b457c2d3ab10fede4d1c (patch)
tree99bcccebd0b17350c0d9154ef0990bab280e8356
parent9170b8e53759a9960db92bd13a6eab62448147f1 (diff)
downloadcaja-d5f0ffdf4e7b08eb5399b457c2d3ab10fede4d1c.tar.bz2
caja-d5f0ffdf4e7b08eb5399b457c2d3ab10fede4d1c.tar.xz
Show thumbnails in list view
-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 565c5d05..d8b99aad 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);