[nautilus] navigation-window: fix text setting/unsetting on Search button



commit d9640b96ef746cbfe5de6ddd21ae06052aa33fa8
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Feb 16 16:57:25 2011 -0500

    navigation-window: fix text setting/unsetting on Search button

 src/nautilus-navigation-window.c |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c
index bbb8f40..81acb6b 100644
--- a/src/nautilus-navigation-window.c
+++ b/src/nautilus-navigation-window.c
@@ -891,15 +891,23 @@ create_extra_pane (NautilusNavigationWindow *window)
 }
 
 static void
-navigation_window_set_search_action_text (NautilusNavigationWindow *window,
+navigation_window_set_search_action_text (NautilusNavigationWindow *nav_window,
 					  gboolean setting)
 {
 	GtkAction *action;
+	NautilusWindow *window;
+	NautilusNavigationWindowPane *pane;
+	GList *l;
 
-	action = gtk_action_group_get_action (window->details->navigation_action_group,
-					      NAUTILUS_ACTION_SEARCH);
+	window = NAUTILUS_WINDOW (nav_window);
 
-	gtk_action_set_is_important (action, setting);
+	for (l = window->details->panes; l != NULL; l = l->next) {
+		pane = l->data;
+		action = gtk_action_group_get_action (pane->action_group,
+						      NAUTILUS_ACTION_SEARCH);
+
+		gtk_action_set_is_important (action, setting);
+	}
 }
 
 void



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