[patch] Use correct finish function



I was hacking on GVfs today and ran into this bug in Nautilus. The
attached fix should be committed to both trunk and 2-22. Thanks.

     David

diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index a285215..01e269c 100644
--- a/libnautilus-private/nautilus-file-operations.c
+++ b/libnautilus-private/nautilus-file-operations.c
@@ -1876,10 +1876,10 @@ unmount_mount_callback (GObject *source_object,
 
 	error = NULL;
 	if (data->eject) {
-		unmounted = g_mount_unmount_finish (G_MOUNT (source_object),
+		unmounted = g_mount_eject_finish (G_MOUNT (source_object),
 		      							res, &error);
 	} else {
-		unmounted = g_mount_eject_finish (G_MOUNT (source_object),
+		unmounted = g_mount_unmount_finish (G_MOUNT (source_object),
 		      							res, &error);
 	}
 	


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]