diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-22 23:44:42 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-26 18:59:27 +0800 |
commit | a6febf98900ac2e7b3f3787bad26fdb568370e9d (patch) | |
tree | 65c4083a97514c8356330a5d39ab4aa297a940fd /plugins/save-calendar | |
parent | c76f301a7d5c7121cd9216e239708da1dbaa1623 (diff) | |
download | gsoc2013-evolution-a6febf98900ac2e7b3f3787bad26fdb568370e9d.tar gsoc2013-evolution-a6febf98900ac2e7b3f3787bad26fdb568370e9d.tar.gz gsoc2013-evolution-a6febf98900ac2e7b3f3787bad26fdb568370e9d.tar.bz2 gsoc2013-evolution-a6febf98900ac2e7b3f3787bad26fdb568370e9d.tar.lz gsoc2013-evolution-a6febf98900ac2e7b3f3787bad26fdb568370e9d.tar.xz gsoc2013-evolution-a6febf98900ac2e7b3f3787bad26fdb568370e9d.tar.zst gsoc2013-evolution-a6febf98900ac2e7b3f3787bad26fdb568370e9d.zip |
Port some calendar plugins to use GSettings
Diffstat (limited to 'plugins/save-calendar')
-rw-r--r-- | plugins/save-calendar/rdf-format.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/plugins/save-calendar/rdf-format.c b/plugins/save-calendar/rdf-format.c index c93eb1fb59..b5f1e283d0 100644 --- a/plugins/save-calendar/rdf-format.c +++ b/plugins/save-calendar/rdf-format.c @@ -45,27 +45,14 @@ static void add_string_to_rdf (xmlNodePtr node, const gchar *tag, const gchar *value); -/* Use { */ - -/* #include <calendar/gui/calendar-config-keys.h> */ -/* #include <calendar/gui/calendar-config.h> */ - -/* } or { */ -#define CALENDAR_CONFIG_PREFIX "/apps/evolution/calendar" -#define CALENDAR_CONFIG_TIMEZONE CALENDAR_CONFIG_PREFIX "/display/timezone" - -static GConfClient *config = NULL; - static gchar * calendar_config_get_timezone (void) { - + GSettings *settings; gchar *retval = NULL; - if (!config) - config = gconf_client_get_default (); - - retval = gconf_client_get_string (config, CALENDAR_CONFIG_TIMEZONE, NULL); + settings = g_settings_new ("org.gnome.evolution.calendar"); + retval = g_settings_get_string (settings, "timezone"); if (!retval) retval = g_strdup ("UTC"); |