aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 66fedd29b1..0df938d816 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -802,7 +802,7 @@ offline_toggle_clicked_cb (GtkButton *button,
}
-/* More callbacks: navigation buttons handling. */
+/* Handling of the navigation buttons. */
static void
back_clicked_callback (EShellFolderTitleBar *title_bar,
@@ -842,6 +842,18 @@ forward_clicked_callback (EShellFolderTitleBar *title_bar,
display_uri (shell_view, new_uri, FALSE);
}
+static void
+update_navigation_buttons (EShellView *shell_view)
+{
+ EShellViewPrivate *priv;
+
+ priv = shell_view->priv;
+
+ e_shell_folder_title_bar_update_navigation_buttons (priv->folder_title_bar,
+ e_history_has_prev (priv->history),
+ e_history_has_next (priv->history));
+}
+
/* Widget setup. */
@@ -2108,6 +2120,8 @@ display_uri (EShellView *shell_view,
if (add_to_history && retval == TRUE && priv->uri != NULL)
e_history_add (priv->history, g_strdup (priv->uri));
+ update_navigation_buttons (shell_view);
+
g_free (priv->set_folder_uri);
priv->set_folder_uri = NULL;