[evolution/wip/gsettings] Use GSettings where possible in calendar importer



commit bba8d7cb91249cac440ca0a5ce3e9f380ac3a76d
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Wed Sep 21 16:12:55 2011 +0200

    Use GSettings where possible in calendar importer

 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 739a23c..6083460 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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]