summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendtrash.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2008-03-03 13:16:25 +0000
committerCosimo Cecchi <cosimoc@src.gnome.org>2008-03-03 13:16:25 +0000
commit201698cd403fdec944b777ddd54610aa9ff50964 (patch)
tree59c42dada6123065283e3b9e28df8fdeffd2b82d /daemon/gvfsbackendtrash.c
parent05983f5fcadd7a32528e1733247a6351a2b12c3a (diff)
downloadgvfs-201698cd403fdec944b777ddd54610aa9ff50964.tar.gz
Create the root monitor for trash when mounting. (#509740).
2008-03-03 Cosimo Cecchi <cosimoc@gnome.org> * daemon/gvfsbackendtrash.c: (do_mount): Create the root monitor for trash when mounting. (#509740). svn path=/trunk/; revision=1504
Diffstat (limited to 'daemon/gvfsbackendtrash.c')
-rw-r--r--daemon/gvfsbackendtrash.c10
1 files changed, 6 insertions, 4 deletions
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));
}