aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-03-10 21:53:12 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-03-17 20:49:12 +0800
commit2e87aa81fc94f5d9564421e036adae7b48e7380a (patch)
tree9576f15a49a6101c9246c6ce0f82e5c7bd4575c2 /shell
parent95a0ae4afb72b534c991fbcd774733a93f256514 (diff)
downloadgsoc2013-evolution-2e87aa81fc94f5d9564421e036adae7b48e7380a.tar
gsoc2013-evolution-2e87aa81fc94f5d9564421e036adae7b48e7380a.tar.gz
gsoc2013-evolution-2e87aa81fc94f5d9564421e036adae7b48e7380a.tar.bz2
gsoc2013-evolution-2e87aa81fc94f5d9564421e036adae7b48e7380a.tar.lz
gsoc2013-evolution-2e87aa81fc94f5d9564421e036adae7b48e7380a.tar.xz
gsoc2013-evolution-2e87aa81fc94f5d9564421e036adae7b48e7380a.tar.zst
gsoc2013-evolution-2e87aa81fc94f5d9564421e036adae7b48e7380a.zip
Remove EMailShellSettings.
EShellSettings predates GSettings and is no longer necessary. GSettings allows binding GObject properties to GSettings keys, with optional mapping functions. That fulfills the purpose of EShellSettings.
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);
}
/**