diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-03 23:20:09 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-03-17 20:49:12 +0800 |
commit | 95a0ae4afb72b534c991fbcd774733a93f256514 (patch) | |
tree | 32293990fecd6a4a6401370e2a5aa355c6454022 /calendar/gui/itip-utils.c | |
parent | 23b89997658a8eb8bd2e1d9d20234a6978880aae (diff) | |
download | gsoc2013-evolution-95a0ae4afb72b534c991fbcd774733a93f256514.tar gsoc2013-evolution-95a0ae4afb72b534c991fbcd774733a93f256514.tar.gz gsoc2013-evolution-95a0ae4afb72b534c991fbcd774733a93f256514.tar.bz2 gsoc2013-evolution-95a0ae4afb72b534c991fbcd774733a93f256514.tar.lz gsoc2013-evolution-95a0ae4afb72b534c991fbcd774733a93f256514.tar.xz gsoc2013-evolution-95a0ae4afb72b534c991fbcd774733a93f256514.tar.zst gsoc2013-evolution-95a0ae4afb72b534c991fbcd774733a93f256514.zip |
Remove ECalShellSettings.
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 'calendar/gui/itip-utils.c')
-rw-r--r-- | calendar/gui/itip-utils.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index ad5c83cf28..82dc88a37f 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -1653,7 +1653,7 @@ itip_send_comp (ESourceRegistry *registry, gboolean only_new_attendees) { EShell *shell; - EShellSettings *shell_settings; + GSettings *settings; EMsgComposer *composer; EComposerHeaderTable *table; EDestination **destinations; @@ -1670,10 +1670,13 @@ itip_send_comp (ESourceRegistry *registry, /* FIXME Pass this in. */ shell = e_shell_get_default (); - shell_settings = e_shell_get_shell_settings (shell); - use_24_hour_format = e_shell_settings_get_boolean ( - shell_settings, "cal-use-24-hour-format"); + settings = g_settings_new ("org.gnome.evolution.calendar"); + + use_24_hour_format = + g_settings_get_boolean (settings, "use-24hour-format"); + + g_object_unref (settings); default_zone = e_cal_client_get_default_timezone (cal_client); |