aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-window-actions.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index 335e939d84..2b70a5eea2 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -763,17 +763,17 @@ action_work_offline_cb (GtkAction *action,
EShellWindow *shell_window)
{
EShell *shell;
- EShellSettings *shell_settings;
+ GSettings *settings;
shell = e_shell_window_get_shell (shell_window);
- shell_settings = e_shell_get_shell_settings (shell);
e_shell_set_online (shell, FALSE);
- /* XXX The sense of the setting is reversed. Would be more
- * intuitive and less error-prone as "start-online". */
- e_shell_settings_set_boolean (
- shell_settings, "start-offline", TRUE);
+ /* XXX The boolean sense of the setting is backwards. Would
+ * be more intuitive and less error-prone as "start-online". */
+ settings = g_settings_new ("org.gnome.evolution.shell");
+ g_settings_set_boolean (settings, "start-offline", TRUE);
+ g_object_unref (settings);
}
/**
@@ -789,17 +789,17 @@ action_work_online_cb (GtkAction *action,
EShellWindow *shell_window)
{
EShell *shell;
- EShellSettings *shell_settings;
+ GSettings *settings;
shell = e_shell_window_get_shell (shell_window);
- shell_settings = e_shell_get_shell_settings (shell);
e_shell_set_online (shell, TRUE);
- /* XXX The sense of the setting is reversed. Would be more
- * intuitive and less error-prone as "start-online". */
- e_shell_settings_set_boolean (
- shell_settings, "start-offline", FALSE);
+ /* XXX The boolean sense of the setting is backwards. Would
+ * be more intuitive and less error-prone as "start-online". */
+ settings = g_settings_new ("org.gnome.evolution.shell");
+ g_settings_set_boolean (settings, "start-offline", FALSE);
+ g_object_unref (settings);
}
/**