Index: libnautilus-private/nautilus-trash-monitor.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-trash-monitor.c,v
retrieving revision 1.25
diff -u -p -r1.25 nautilus-trash-monitor.c
--- libnautilus-private/nautilus-trash-monitor.c	5 Nov 2003 16:19:54 -0000	1.25
+++ libnautilus-private/nautilus-trash-monitor.c	28 Jul 2005 19:46:50 -0000
@@ -253,6 +253,25 @@ nautilus_trash_monitor_get_trash_directo
 	return result;
 }
 
+GList *
+nautilus_trash_monitor_get_trash_directories_as_files (void)
+{
+	GList *uris, *ret, *l;
+	char *uri;
+
+	ret = NULL;
+
+	uris = nautilus_trash_monitor_get_trash_directories ();
+	for (l = uris; l != NULL; l = l->next) {
+		uri = gnome_vfs_uri_to_string (uris->data, GNOME_VFS_URI_HIDE_NONE);
+		ret = g_list_prepend (ret, nautilus_file_get (uri));
+		g_free (uri);
+	}
+	gnome_vfs_uri_list_free (uris);
+
+	return g_list_reverse (ret);
+}
+
 void 
 nautilus_trash_monitor_add_new_trash_directories (void)
 {
Index: libnautilus-private/nautilus-trash-monitor.h
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-trash-monitor.h,v
retrieving revision 1.5
diff -u -p -r1.5 nautilus-trash-monitor.h
--- libnautilus-private/nautilus-trash-monitor.h	5 Nov 2003 16:19:55 -0000	1.5
+++ libnautilus-private/nautilus-trash-monitor.h	28 Jul 2005 19:46:50 -0000
@@ -63,6 +63,7 @@ GtkType			nautilus_trash_monitor_get_typ
 NautilusTrashMonitor   *nautilus_trash_monitor_get 				(void);
 gboolean		nautilus_trash_monitor_is_empty 			(void);
 GList *			nautilus_trash_monitor_get_trash_directories 		(void);
+GList *			nautilus_trash_monitor_get_trash_directories_as_files 	(void);
 void			nautilus_trash_monitor_add_new_trash_directories	(void);
 
 #endif
