[nautilus] window-pane: use _split_view_off() to close the active pane with Ctrl+W



commit 99d84db2ccc8b7cd998a6704cc34b83cbcac4760
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Mar 15 14:48:04 2011 -0400

    window-pane: use _split_view_off() to close the active pane with Ctrl+W
    
    This makes nautilus' behavior consistent with what happens when F3 is
    pressed.

 src/nautilus-window-pane.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-window-pane.c b/src/nautilus-window-pane.c
index 9c35cbf..68452fc 100644
--- a/src/nautilus-window-pane.c
+++ b/src/nautilus-window-pane.c
@@ -929,11 +929,9 @@ nautilus_window_pane_slot_close (NautilusWindowPane *pane,
 			/* If next_pane is non-NULL, we have more than one pane available. In this
 			 * case, close the current pane and switch to the next one. If there is
 			 * no next pane, close the window. */
-			if(next_pane) {
-				nautilus_window_close_pane (pane);
+			if (next_pane) {
 				nautilus_window_set_active_pane (window, next_pane);
-
-				nautilus_window_update_show_hide_menu_items (window);
+				nautilus_window_split_view_off (window);
 			} else {
 				nautilus_window_close (window);
 			}



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