From de7843234354f8aec863a80b3d354818603023a6 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Fri, 18 Jan 2008 06:53:39 +0000 Subject: ** Fix for bug #329712 2008-01-18 Srinivasa Ragavan ** Fix for bug #329712 * e-shell-window-commands.c: (update_offline_menu_item): * e-shell-window.c: (update_offline_toggle_status), (update_send_receive_sensitivity), (offline_toggle_clicked_callback): * e-shell.c: (e_shell_construct), (e_shell_save_settings), (set_line_status): * e-shell.h: Add a new state to maintian forced offline. svn path=/trunk/; revision=34847 --- shell/e-shell-window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shell/e-shell-window.c') diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index 7b1c2b2006..ae2c26912f 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -389,6 +389,7 @@ update_offline_toggle_status (EShellWindow *window) flags = ES_MENU_SHELL_OFFLINE; break; case E_SHELL_LINE_STATUS_OFFLINE: + case E_SHELL_LINE_STATUS_FORCED_OFFLINE: icon = OFFLINE_ICON; sensitive = TRUE; tooltip = _("Evolution is currently offline. " @@ -414,7 +415,8 @@ update_offline_toggle_status (EShellWindow *window) static void update_send_receive_sensitivity (EShellWindow *window) { - if (e_shell_get_line_status (window->priv->shell.eshell) == E_SHELL_LINE_STATUS_OFFLINE) + if (e_shell_get_line_status (window->priv->shell.eshell) == E_SHELL_LINE_STATUS_OFFLINE || + e_shell_get_line_status (window->priv->shell.eshell) == E_SHELL_LINE_STATUS_FORCED_OFFLINE) bonobo_ui_component_set_prop (window->priv->ui_component, "/commands/SendReceive", "sensitive", "0", NULL); @@ -484,6 +486,7 @@ offline_toggle_clicked_callback (GtkButton *button, e_shell_go_offline (priv->shell.eshell, window, GNOME_Evolution_USER_OFFLINE); break; case E_SHELL_LINE_STATUS_OFFLINE: + case E_SHELL_LINE_STATUS_FORCED_OFFLINE: e_shell_go_online (priv->shell.eshell, window, GNOME_Evolution_USER_ONLINE); break; default: -- cgit v1.2.3