From 3a120e41f61e61f615be901f0fd90d2b385d0606 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Wed, 20 Nov 2002 12:19:53 +0000 Subject: Remove sample and loser from the default build. 2002-11-20 Anders Carlsson * components/Makefile.am: Remove sample and loser from the default build. * libnautilus-private/nautilus-icon-factory.c: (nautilus_icon_factory_get_icon_for_file): Special-case the trash location so that it gets the correct icon. --- libnautilus-private/nautilus-icon-factory.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libnautilus-private/nautilus-icon-factory.c') diff --git a/libnautilus-private/nautilus-icon-factory.c b/libnautilus-private/nautilus-icon-factory.c index 6ad74e049..9be776b7e 100644 --- a/libnautilus-private/nautilus-icon-factory.c +++ b/libnautilus-private/nautilus-icon-factory.c @@ -67,6 +67,9 @@ #define CACHE_SELF_CHECKS 0 #define ICON_NAME_THUMBNAIL_LOADING "gnome-fs-loading-icon" +#define ICON_NAME_TRASH_EMPTY "gnome-fs-trash-empty" +#define ICON_NAME_TRASH_FULL "gnome-fs-trash-full" + #define NAUTILUS_EMBLEM_NAME_PREFIX "emblem-" /* This used to be called ICON_CACHE_MAX_ENTRIES, but it's misleading @@ -702,6 +705,14 @@ nautilus_icon_factory_get_icon_for_file (NautilusFile *file) g_free (custom_uri); file_uri = nautilus_file_get_uri (file); + + if (strcmp (file_uri, EEL_TRASH_URI) == 0) { + g_free (file_uri); + + return g_strdup (nautilus_trash_monitor_is_empty () + ? ICON_NAME_TRASH_EMPTY : ICON_NAME_TRASH_FULL); + } + mime_type = nautilus_file_get_mime_type (file); file_info = nautilus_file_peek_vfs_file_info (file); -- cgit v1.2.1