aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-02-23 03:27:52 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-02-23 03:27:52 +0800
commit2c66be6ec9f15771110b0e34f3159a6f3b17df4e (patch)
tree0a053c732e307a6e0ba7b7bada35d185299b44b8 /shell/e-shell-view.c
parent2dd28d3e915503f147dfd65b1d1627cb781e1dfa (diff)
downloadgsoc2013-evolution-2c66be6ec9f15771110b0e34f3159a6f3b17df4e.tar.gz
gsoc2013-evolution-2c66be6ec9f15771110b0e34f3159a6f3b17df4e.tar.zst
gsoc2013-evolution-2c66be6ec9f15771110b0e34f3159a6f3b17df4e.zip
New. (display_uri): Call it before returning so the navigation buttons
* e-shell-view.c (update_navigation_buttons): New. (display_uri): Call it before returning so the navigation buttons always have the right sensitivity. * e-shell-folder-title-bar.c (e_shell_folder_title_bar_update_navigation_buttons): New. (add_navigation_buttons): Remove the "Back" label. svn path=/trunk/; revision=15799
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;