patches/gvfs-03-unmount-webdav.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 17331 fe9a34ed8fc6
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16218
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     1
--- gvfs-1.3.3/daemon/gvfsbackenddav.c.orig	2009-08-07 15:43:41.662781000 +0800
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     2
+++ gvfs-1.3.3/daemon/gvfsbackenddav.c	2009-08-07 15:45:12.580734000 +0800
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     3
@@ -2304,13 +2304,11 @@
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     4
   soup_uri_free (source);
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     5
 }
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     6
 
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     7
-static gboolean
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     8
-try_unmount (GVfsBackend    *backend,
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     9
-             GVfsJobUnmount *job,
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    10
-             GMountUnmountFlags flags,
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    11
-             GMountSource *mount_source)
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    12
+static void 
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    13
+do_unmount (GVfsBackend    *backend,
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    14
+             GVfsJobUnmount *job)
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    15
 {
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    16
-  _exit (0);
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    17
+  g_vfs_job_succeeded (G_VFS_JOB (job));
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    18
 }
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    19
 
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    20
 /* ************************************************************************* */
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    21
@@ -2338,5 +2336,5 @@
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    22
   backend_class->make_directory    = do_make_directory;
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    23
   backend_class->delete            = do_delete;
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    24
   backend_class->set_display_name  = do_set_display_name;
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    25
-  backend_class->try_unmount       = try_unmount;
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    26
+  backend_class->unmount           = do_unmount;
042fa39fd85a 2009-08-07 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    27
 }