diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2008-01-18 14:53:39 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2008-01-18 14:53:39 +0800 |
commit | de7843234354f8aec863a80b3d354818603023a6 (patch) | |
tree | 77b54a9df027143c18e6db2aed71823de89c3183 /shell/e-shell-window.c | |
parent | cd14d28ca592cccf52c2c886334f266c1ac46359 (diff) | |
download | gsoc2013-evolution-de7843234354f8aec863a80b3d354818603023a6.tar.gz gsoc2013-evolution-de7843234354f8aec863a80b3d354818603023a6.tar.zst gsoc2013-evolution-de7843234354f8aec863a80b3d354818603023a6.zip |
** Fix for bug #329712
2008-01-18 Srinivasa Ragavan <sragavan@novell.com>
** 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
Diffstat (limited to 'shell/e-shell-window.c')
-rw-r--r-- | shell/e-shell-window.c | 5 |
1 files changed, 4 insertions, 1 deletions
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: |