summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-11-03 14:33:44 -0400
committerlukefromdc <[email protected]>2016-11-03 14:33:44 -0400
commit5aa0c0f7f1d9b6fe1b844d7688a18e68347db96b (patch)
treed40b2aab8160ddf4325b247e12c619ef4cd4b714 /libcaja-private
parent570d6afed8ff62e430f46b3d87870702240ce3e8 (diff)
downloadcaja-5aa0c0f7f1d9b6fe1b844d7688a18e68347db96b.tar.bz2
caja-5aa0c0f7f1d9b6fe1b844d7688a18e68347db96b.tar.xz
suppress notification on unmounting non-ejectiable device
Do not send "it is not safe to remove the drive" notifcation on unmount of internal drive or other non-ejectable device. Also stop incorrect notification on cancelled eject operation (as when mounted by another user and not authorized to eject).
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-file-operations.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c
index b76ef038..2767922b 100644
--- a/libcaja-private/caja-file-operations.c
+++ b/libcaja-private/caja-file-operations.c
@@ -2073,6 +2073,7 @@ unmount_mount_callback (GObject *source_object,
if (data->eject) {
unmounted = g_mount_eject_with_operation_finish (G_MOUNT (source_object),
res, &error);
+ caja_application_notify_unmount_show ("It is now safe to remove the drive");
} else {
unmounted = g_mount_unmount_with_operation_finish (G_MOUNT (source_object),
res, &error);
@@ -2100,8 +2101,6 @@ unmount_mount_callback (GObject *source_object,
g_error_free (error);
}
- caja_application_notify_unmount_show ("It is now safe to remove the drive");
-
eel_remove_weak_pointer (&data->parent_window);
g_object_unref (data->mount);
g_free (data);