From 44584d2eee219d9b7db82ed81072b84609837128 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 20 Apr 2017 12:55:44 +0300 Subject: file: make caja_file_get_gicon return custom icons too (#765) fixes https://github.com/mate-desktop/caja/issues/410 taken from: https://git.gnome.org/browse/nautilus/commit/?id=f1c782c13dd675bafffb2a4d85900da52be88f3f --- libcaja-private/caja-file.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index 6e6603b2..2ea025e4 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -4123,6 +4123,11 @@ caja_file_get_gicon (CajaFile *file, return NULL; } + icon = get_custom_icon (file); + if (icon != NULL) { + return icon; + } + if (file->details->icon) { icon = NULL; -- cgit v1.2.1