From 0b2150010cd81cd3b22c209553e6ba342d0bf692 Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 26 Nov 2014 16:58:21 +0100 Subject: drivemount: allow unmount without eject Based on gnome-applets commit: be2f99f0e4dfee124e380cd6d303bae3372c088b From: Enrico Minack Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=604848 --- drivemount/drive-button.c | 12 +++++------- 1 file 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, -- cgit v1.2.1