gvfs r1504 - in trunk: . daemon
- From: cosimoc svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1504 - in trunk: . daemon
- Date: Mon, 3 Mar 2008 13:16:25 +0000 (GMT)
Author: cosimoc
Date: Mon Mar 3 13:16:25 2008
New Revision: 1504
URL: http://svn.gnome.org/viewvc/gvfs?rev=1504&view=rev
Log:
2008-03-03 Cosimo Cecchi <cosimoc gnome org>
* daemon/gvfsbackendtrash.c: (do_mount):
Create the root monitor for trash when mounting. (#509740).
Modified:
trunk/ChangeLog
trunk/daemon/gvfsbackendtrash.c
Modified: trunk/daemon/gvfsbackendtrash.c
==============================================================================
--- trunk/daemon/gvfsbackendtrash.c (original)
+++ trunk/daemon/gvfsbackendtrash.c Mon Mar 3 13:16:25 2008
@@ -115,10 +115,11 @@
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 @@
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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]