From 2c66be6ec9f15771110b0e34f3159a6f3b17df4e Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 22 Feb 2002 19:27:52 +0000 Subject: 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 --- shell/e-shell-view.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'shell/e-shell-view.c') 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; -- cgit v1.2.3