summaryrefslogtreecommitdiff
path: root/src/nautilus-toolbar.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-01-25 13:16:04 +0000
committerCosimo Cecchi <cosimoc@gnome.org>2015-01-25 13:16:04 +0000
commitdea4e468e1f6bd2b3c5eacb82797d2769431e045 (patch)
treead93373fbb4683b86b08371e375a962bd3f9faed /src/nautilus-toolbar.c
parentac53a2e1664111bc0398bc3343f466ee43c39cf6 (diff)
downloadnautilus-dea4e468e1f6bd2b3c5eacb82797d2769431e045.tar.gz
toolbar: move updating of navigation actions in NautilusWindow
Diffstat (limited to 'src/nautilus-toolbar.c')
-rw-r--r--src/nautilus-toolbar.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index b8ff2ea56..789f19666 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -128,25 +128,6 @@ activate_forward_menu_item_callback (GtkMenuItem *menu_item, NautilusWindow *win
activate_back_or_forward_menu_item (menu_item, window, FALSE);
}
-void
-nautilus_toolbar_sync_navigation_buttons (NautilusToolbar *self)
-{
- NautilusWindowSlot *active_slot;
- GAction *action;
- gboolean enabled;
-
- /* Check if the back and forward buttons need enabling or disabling. */
- active_slot = nautilus_window_get_active_slot (self->priv->window);
-
- action = g_action_map_lookup_action (G_ACTION_MAP (self->priv->window), "back");
- enabled = nautilus_window_slot_get_back_history (active_slot) != NULL;
- g_simple_action_set_enabled (G_SIMPLE_ACTION (action), enabled);
-
- action = g_action_map_lookup_action (G_ACTION_MAP (self->priv->window), "forward");
- enabled = nautilus_window_slot_get_forward_history (active_slot) != NULL;
- g_simple_action_set_enabled (G_SIMPLE_ACTION (action), enabled);
-}
-
static void
fill_menu (NautilusWindow *window,
GtkWidget *menu,