[nautilus] Hide the move/copy to next pane menu items if there are no panes



commit 8e04dffd3aa89049379e1d976f4ae848ad45f4ba
Author: William Jon McCann <jmccann redhat com>
Date:   Mon May 21 17:33:59 2012 -0400

    Hide the move/copy to next pane menu items if there are no panes
    
    This allows the empty and useless parent menus to be hidden as well.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676518

 src/nautilus-view.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index be5ea04..2c4d4e9 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -8676,11 +8676,13 @@ real_update_menus (NautilusView *view)
 	action = gtk_action_group_get_action (view->details->dir_action_group,
 					      NAUTILUS_ACTION_COPY_TO_NEXT_PANE);
 	gtk_action_set_sensitive (action, can_copy_files && next_pane_is_writable);
+	gtk_action_set_visible (action, next_pane_is_writable);
 
 	/* move to next pane: works if file is cuttable, and next pane is writable */
 	action = gtk_action_group_get_action (view->details->dir_action_group,
 					      NAUTILUS_ACTION_MOVE_TO_NEXT_PANE);
 	gtk_action_set_sensitive (action, can_delete_files && next_pane_is_writable);
+	gtk_action_set_visible (action, next_pane_is_writable);
 
 	action = gtk_action_group_get_action (view->details->dir_action_group,
 					      "CopyToMenu");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]