[nautilus] Only sync tab name in menu for the active pane



commit 877da7dab374c4ae66ee57b7e5c10e672058b523
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Dec 11 14:06:49 2009 +0100

    Only sync tab name in menu for the active pane

 src/nautilus-navigation-window.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c
index fb4d864..d4b3c02 100644
--- a/src/nautilus-navigation-window.c
+++ b/src/nautilus-navigation-window.c
@@ -747,7 +747,9 @@ real_sync_title (NautilusWindow *window,
 	notebook = NAUTILUS_NOTEBOOK (NAUTILUS_NAVIGATION_WINDOW_PANE (slot->pane)->notebook);
 	nautilus_notebook_sync_tab_label (notebook, slot);
 
-	nautilus_navigation_window_pane_sync_tab_menu_title (NAUTILUS_NAVIGATION_WINDOW_PANE (nautilus_window_get_pane_from_slot (window, slot)), slot);
+	if (slot->pane->is_active) {
+		nautilus_navigation_window_pane_sync_tab_menu_title (NAUTILUS_NAVIGATION_WINDOW_PANE (slot->pane), slot);
+	}
 }
 
 static NautilusIconInfo *



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