summaryrefslogtreecommitdiff
path: root/hal/ghaldrive.c
diff options
context:
space:
mode:
Diffstat (limited to 'hal/ghaldrive.c')
-rw-r--r--hal/ghaldrive.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hal/ghaldrive.c b/hal/ghaldrive.c
index 5071e1bd..db4079a4 100644
--- a/hal/ghaldrive.c
+++ b/hal/ghaldrive.c
@@ -587,6 +587,7 @@ typedef struct {
GAsyncReadyCallback callback;
gpointer user_data;
GCancellable *cancellable;
+ GMountUnmountFlags flags;
GList *pending_mounts;
} UnmountMountsOp;
@@ -673,6 +674,7 @@ _eject_unmount_mounts (UnmountMountsOp *data)
g_warning ("unmounting %p", mount);
g_mount_unmount (mount,
+ data->flags,
data->cancellable,
_eject_unmount_mounts_cb,
data);
@@ -681,6 +683,7 @@ _eject_unmount_mounts (UnmountMountsOp *data)
static void
g_hal_drive_eject (GDrive *drive,
+ GMountUnmountFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -696,6 +699,7 @@ g_hal_drive_eject (GDrive *drive,
data->cancellable = cancellable;
data->callback = callback;
data->user_data = user_data;
+ data->flags = flags;
for (l = hal_drive->volumes; l != NULL; l = l->next)
{