From 2e87aa81fc94f5d9564421e036adae7b48e7380a Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 10 Mar 2013 09:53:12 -0400 Subject: 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. --- shell/e-shell-window-actions.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'shell') 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); } /** -- cgit v1.2.3