diff options
author | Sivaiah Nallaagatla <snallagatla@novell.com> | 2004-12-24 17:16:56 +0800 |
---|---|---|
committer | Sivaiah Nallagatla <siva@src.gnome.org> | 2004-12-24 17:16:56 +0800 |
commit | c744495276a62f6789787476b558b85d782eaa74 (patch) | |
tree | 434bf4b512d697f2368f693137e0e6127ac90ec6 /shell | |
parent | 7b807fd2d71c6063c19c29aa5ef7bced5cbce3a1 (diff) | |
download | gsoc2013-evolution-c744495276a62f6789787476b558b85d782eaa74.tar gsoc2013-evolution-c744495276a62f6789787476b558b85d782eaa74.tar.gz gsoc2013-evolution-c744495276a62f6789787476b558b85d782eaa74.tar.bz2 gsoc2013-evolution-c744495276a62f6789787476b558b85d782eaa74.tar.lz gsoc2013-evolution-c744495276a62f6789787476b558b85d782eaa74.tar.xz gsoc2013-evolution-c744495276a62f6789787476b558b85d782eaa74.tar.zst gsoc2013-evolution-c744495276a62f6789787476b558b85d782eaa74.zip |
set start_offline gconf key when ever offline state is changed.
2004-12-23 Sivaiah Nallaagatla <snallagatla@novell.com>
* e-shell.c (e_shell_go_offline)
(e_shell_go_online) : set start_offline gconf key
when ever offline state is changed.
svn path=/trunk/; revision=28198
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 6 | ||||
-rw-r--r-- | shell/e-shell.c | 13 |
2 files changed, 15 insertions, 4 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 91a804929d..3d526c8a7e 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2004-12-23 Sivaiah Nallaagatla <snallagatla@novell.com> + + * e-shell.c (e_shell_go_offline) + (e_shell_go_online) : set start_offline gconf key + when ever offline state is changed. + 2004-12-21 JP Rosevear <jpr@novell.com> * e-corba-config-page.c: Convert to G_DEFINE_TYPE diff --git a/shell/e-shell.c b/shell/e-shell.c index 5664f669c3..9ce18b1422 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -1098,7 +1098,8 @@ e_shell_go_offline (EShell *shell, EShellWindow *action_window) { EShellPrivate *priv; - + GConfClient *client; + g_return_if_fail (shell != NULL); g_return_if_fail (E_IS_SHELL (shell)); g_return_if_fail (action_window != NULL); @@ -1108,7 +1109,9 @@ e_shell_go_offline (EShell *shell, if (priv->line_status != E_SHELL_LINE_STATUS_ONLINE) return; - + client = gconf_client_get_default (); + gconf_client_set_bool (client, "/apps/evolution/shell/start_offline", TRUE, NULL); + g_object_unref (client); priv->offline_handler = e_shell_offline_handler_new (shell); g_signal_connect (priv->offline_handler, "offline_procedure_started", @@ -1134,7 +1137,7 @@ e_shell_go_online (EShell *shell, GSList *component_infos; GSList *p; ESEvent *ese; - + GConfClient *client; g_return_if_fail (shell != NULL); g_return_if_fail (E_IS_SHELL (shell)); g_return_if_fail (action_window == NULL || E_IS_SHELL_WINDOW (action_window)); @@ -1167,7 +1170,9 @@ e_shell_go_online (EShell *shell, priv->line_status = E_SHELL_LINE_STATUS_ONLINE; e_passwords_set_online (TRUE); g_signal_emit (shell, signals[LINE_STATUS_CHANGED], 0, priv->line_status); - + client = gconf_client_get_default (); + gconf_client_set_bool (client, "/apps/evolution/shell/start_offline", FALSE, NULL); + g_object_unref (client); ese = es_event_peek(); e_event_emit((EEvent *)ese, "state.changed", (EEventTarget *)es_event_target_new_state(ese, TRUE)); } |