[nautilus] nautilus-files-view: modify initial conditions
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] nautilus-files-view: modify initial conditions
- Date: Thu, 22 Sep 2016 09:37:41 +0000 (UTC)
commit b6673fd031562b394fca7a42077b9e455eee3ef0
Author: victoryang <tyang suse com>
Date: Thu Sep 1 18:13:06 2016 +0800
nautilus-files-view: modify initial conditions
When icons are enabled on desktop, we should be able to "eject"
the mountable devices on the selection menu. We were not setting
the actions visiblity correctly, which makes for example the "eject"
selection menu item not showing up.
This patch sets the correct initial conditions.
https://bugzilla.gnome.org/show_bug.cgi?id=768355
src/nautilus-files-view.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 11c5175..8d0a0a4 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -7257,7 +7257,12 @@ real_update_actions_state (NautilusFilesView *view)
can_move_files && !selection_contains_recent);
/* Drive menu */
- show_mount = show_unmount = show_eject = show_start = show_stop = show_detect_media = FALSE;
+ show_mount = (selection != NULL);
+ show_unmount = (selection != NULL);
+ show_eject = (selection != NULL);
+ show_start = (selection != NULL && selection_count == 1);
+ show_stop = (selection != NULL && selection_count == 1);
+ show_detect_media = (selection != NULL && selection_count == 1);
for (l = selection; l != NULL && (show_mount || show_unmount
|| show_eject
|| show_start || show_stop
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]