From c744495276a62f6789787476b558b85d782eaa74 Mon Sep 17 00:00:00 2001 From: Sivaiah Nallaagatla Date: Fri, 24 Dec 2004 09:16:56 +0000 Subject: set start_offline gconf key when ever offline state is changed. 2004-12-23 Sivaiah Nallaagatla * 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 --- shell/ChangeLog | 6 ++++++ shell/e-shell.c | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'shell') 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 + + * 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 * 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)); } -- cgit