summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--daemon/gvfsbackendtrash.c10
2 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 5089ada9..40d23547 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-03 Cosimo Cecchi <cosimoc@gnome.org>
+
+ * daemon/gvfsbackendtrash.c: (do_mount):
+ Create the root monitor for trash when mounting. (#509740).
+
2008-03-03 Benjamin Otte <otte@gnome.org>
* daemon/gvfsbackendftp.c: (ftp_connection_receive):
diff --git a/daemon/gvfsbackendtrash.c b/daemon/gvfsbackendtrash.c
index 10e883a6..c44dffe1 100644
--- a/daemon/gvfsbackendtrash.c
+++ b/daemon/gvfsbackendtrash.c
@@ -115,10 +115,11 @@ G_LOCK_DEFINE_STATIC(root_monitor);
G_DEFINE_TYPE (GVfsBackendTrash, g_vfs_backend_trash, G_VFS_TYPE_BACKEND)
-static void schedule_update_trash_files (GVfsBackendTrash *backend,
- gboolean update_trash_dirs);
-static GList *enumerate_root (GVfsBackend *backend,
- GVfsJobEnumerate *job);
+static void schedule_update_trash_files (GVfsBackendTrash *backend,
+ gboolean update_trash_dirs);
+static GList *enumerate_root (GVfsBackend *backend,
+ GVfsJobEnumerate *job);
+static GVfsMonitor *do_create_root_monitor (GVfsBackend *backend);
static char *
escape_pathname (const char *dir)
@@ -618,6 +619,7 @@ do_mount (GVfsBackend *backend,
names = enumerate_root (backend, NULL);
trash_backend->num_top_files = g_list_length (names);
trash_backend->top_files = g_list_sort (names, (GCompareFunc)strcmp);
+ do_create_root_monitor (backend);
g_vfs_job_succeeded (G_VFS_JOB (job));
}