[nautilus] file: make nautilus_file_get_gicon() return custom icons too



commit f1c782c13dd675bafffb2a4d85900da52be88f3f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Jan 12 19:25:25 2011 +0100

    file: make nautilus_file_get_gicon() return custom icons too

 libnautilus-private/nautilus-file.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 580fdd5..31d2871 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -4013,6 +4013,12 @@ nautilus_file_get_gicon (NautilusFile *file,
 		return NULL;
 	}
 
+	icon = get_custom_icon (file);
+
+	if (icon != NULL) {
+		return icon;
+	}
+
 	if (file->details->icon) {
 		icon = NULL;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]