Remove another deprecated glib function call.

This commit is contained in:
John Maguire 2011-10-26 12:06:51 +02:00
parent 01f3f5c5ea
commit 9c6964da2c
1 changed files with 7 additions and 2 deletions

View File

@ -501,8 +501,13 @@ void GioLister::UnmountDevice(const QString &id) {
(GAsyncReadyCallback) MountEjectFinished,
NULL);
} else if (g_mount_can_unmount(info.mount)) {
g_mount_unmount(info.mount, G_MOUNT_UNMOUNT_NONE, NULL,
(GAsyncReadyCallback) MountUnmountFinished, NULL);
g_mount_unmount_with_operation(
info.mount,
G_MOUNT_UNMOUNT_NONE,
NULL,
NULL,
(GAsyncReadyCallback) MountUnmountFinished,
NULL);
}
}