summaryrefslogtreecommitdiff
path: root/drivemount
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-26 16:58:21 +0100
committerinfirit <[email protected]>2014-11-26 18:13:43 +0100
commit0b2150010cd81cd3b22c209553e6ba342d0bf692 (patch)
tree4fc4731750982317ac3a0b666c749f681c76c395 /drivemount
parentf54cd4ccea29bb077dbc235331979ea7bc51d526 (diff)
downloadmate-applets-0b2150010cd81cd3b22c209553e6ba342d0bf692.tar.bz2
mate-applets-0b2150010cd81cd3b22c209553e6ba342d0bf692.tar.xz
drivemount: allow unmount without eject
Based on gnome-applets commit: be2f99f0e4dfee124e380cd6d303bae3372c088b From: Enrico Minack <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=604848
Diffstat (limited to 'drivemount')
-rw-r--r--drivemount/drive-button.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivemount/drive-button.c b/drivemount/drive-button.c
index 07cafbe6..2ca86acf 100644
--- a/drivemount/drive-button.c
+++ b/drivemount/drive-button.c
@@ -969,13 +969,11 @@ drive_button_ensure_popup (DriveButton *self)
gtk_container_add (GTK_CONTAINER (self->popup_menu), item);
if (mounted) {
- if (!ejectable) {
- label = g_strdup_printf (_("Un_mount %s"), display_name);
- item = create_menu_item (self, NULL, label,
- G_CALLBACK (unmount_drive), TRUE);
- g_free (label);
- gtk_container_add (GTK_CONTAINER (self->popup_menu), item);
- }
+ label = g_strdup_printf (_("Un_mount %s"), display_name);
+ item = create_menu_item (self, NULL, label,
+ G_CALLBACK (unmount_drive), TRUE);
+ g_free (label);
+ gtk_container_add (GTK_CONTAINER (self->popup_menu), item);
} else {
label = g_strdup_printf (_("_Mount %s"), display_name);
item = create_menu_item (self, NULL, label,