diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-21 22:12:55 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-21 22:12:55 +0800 |
commit | bba8d7cb91249cac440ca0a5ce3e9f380ac3a76d (patch) | |
tree | 004729ebe724286186b8d922b034251500f8f72e /calendar/importers | |
parent | 233933dbbc1b8538a780cfbdc575d5fca5bb383f (diff) | |
download | gsoc2013-evolution-bba8d7cb91249cac440ca0a5ce3e9f380ac3a76d.tar.gz gsoc2013-evolution-bba8d7cb91249cac440ca0a5ce3e9f380ac3a76d.tar.zst gsoc2013-evolution-bba8d7cb91249cac440ca0a5ce3e9f380ac3a76d.zip |
Use GSettings where possible in calendar importer
Diffstat (limited to 'calendar/importers')
-rw-r--r-- | calendar/importers/icalendar-importer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index 739a23cf1d..6083460683 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -1379,11 +1379,11 @@ get_users_timezone (void) if (e_shell_settings_get_boolean (shell_settings, "cal-use-system-timezone")) { location = e_cal_util_get_system_timezone_location (); } else { - GConfClient *client = gconf_client_get_default (); + GSettings *settings = g_settings_new ("org.gnome.evolution.calendar"); - location = gconf_client_get_string (client, CALENDAR_CONFIG_TIMEZONE, NULL); + location = g_settings_get_string (settings, "timezone", NULL); - g_object_unref (client); + g_object_unref (settings); } if (location) { |