[nautilus] Only update toolbar items when active pane changes



commit 7c66c6c020edf40383681a6e691c1451ff90b9f7
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Dec 16 15:14:55 2009 +0100

    Only update toolbar items when active pane changes

 src/nautilus-window-manage-views.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index 520683a..c123c7f 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -1656,7 +1656,8 @@ update_for_new_location (NautilusWindowSlot *slot)
 			nautilus_window_pane_sync_search_widgets (slot->pane);
 		}
 
-		if (NAUTILUS_IS_NAVIGATION_WINDOW (window)) {
+		if (NAUTILUS_IS_NAVIGATION_WINDOW (window) &&
+		    slot->pane == window->details->active_pane) {
 			nautilus_navigation_window_load_extension_toolbar_items (NAUTILUS_NAVIGATION_WINDOW (window));
 		}
 	}



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