diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-31 14:22:23 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-31 14:22:23 +0800 |
commit | c6d835a949f3d5a917c1b2f3c39d0226514adde9 (patch) | |
tree | b9d27c3d207118c58f7d500d84a522f222bb6320 /shell/e-shell-view.c | |
parent | 64e74a631c44364553aac9d4aff2e5cb83f3e81b (diff) | |
download | gsoc2013-evolution-c6d835a949f3d5a917c1b2f3c39d0226514adde9.tar.gz gsoc2013-evolution-c6d835a949f3d5a917c1b2f3c39d0226514adde9.tar.zst gsoc2013-evolution-c6d835a949f3d5a917c1b2f3c39d0226514adde9.zip |
Initialize the toggle items in the View menu when creating them, so
that they start up in the correct state. Deactivate the current
control when displaying an empty error page. Removed some crufty
debugging messages.
svn path=/trunk/; revision=3310
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index f9cc510102..0157b72b0b 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -637,7 +637,8 @@ show_error (EShellView *shell_view, gtk_notebook_remove_page (notebook, 0); gtk_notebook_prepend_page (notebook, label, NULL); - gtk_notebook_set_page (notebook, 0); + + set_current_notebook_page (shell_view, 0); } /* Create a new view for @uri with @control. It assumes a view for @uri does not exist yet. */ @@ -906,6 +907,24 @@ e_shell_view_set_folder_bar_mode (EShellView *shell_view, gtk_signal_emit (GTK_OBJECT (shell_view), signals[FOLDER_BAR_MODE_CHANGED], mode); } +EShellViewSubwindowMode +e_shell_view_get_shortcut_bar_mode (EShellView *shell_view) +{ + g_return_val_if_fail (shell_view != NULL, E_SHELL_VIEW_SUBWINDOW_HIDDEN); + g_return_val_if_fail (E_IS_SHELL_VIEW (shell_view), E_SHELL_VIEW_SUBWINDOW_HIDDEN); + + return shell_view->priv->shortcut_bar_mode; +} + +EShellViewSubwindowMode +e_shell_view_get_folder_bar_mode (EShellView *shell_view) +{ + g_return_val_if_fail (shell_view != NULL, E_SHELL_VIEW_SUBWINDOW_HIDDEN); + g_return_val_if_fail (E_IS_SHELL_VIEW (shell_view), E_SHELL_VIEW_SUBWINDOW_HIDDEN); + + return shell_view->priv->folder_bar_mode; +} + EShell * e_shell_view_get_shell (EShellView *shell_view) |