[nautilus] pane: use nautilus_navigation_state_set_boolean()



commit f784b5b57503e58c49a1d55b0c664096951c9018
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Jan 6 14:12:37 2012 +0100

    pane: use nautilus_navigation_state_set_boolean()

 src/nautilus-window-pane.c |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-window-pane.c b/src/nautilus-window-pane.c
index e540560..8735ec0 100644
--- a/src/nautilus-window-pane.c
+++ b/src/nautilus-window-pane.c
@@ -846,6 +846,7 @@ void
 nautilus_window_pane_sync_location_widgets (NautilusWindowPane *pane)
 {
 	NautilusWindowSlot *slot, *active_slot;
+	NautilusNavigationState *nav_state;
 
 	slot = pane->active_slot;
 
@@ -868,10 +869,14 @@ nautilus_window_pane_sync_location_widgets (NautilusWindowPane *pane)
 
 		/* Check if the back and forward buttons need enabling or disabling. */
 		active_slot = nautilus_window_get_active_slot (pane->window);
-		nautilus_window_allow_back (pane->window,
-					    active_slot->back_list != NULL);
-		nautilus_window_allow_forward (pane->window,
-					       active_slot->forward_list != NULL);
+		nav_state = nautilus_window_get_navigation_state (pane->window);
+
+		nautilus_navigation_state_set_boolean (nav_state,
+						       NAUTILUS_ACTION_BACK,
+						       active_slot->back_list != NULL);
+		nautilus_navigation_state_set_boolean (nav_state,
+						       NAUTILUS_ACTION_FORWARD,
+						       active_slot->forward_list != NULL);
 	}
 }
 



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