From 30f7d3788f7dad3dee700d36570baa11f4612634 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 17 Nov 2011 16:10:02 +0100 Subject: Migrate ECalConfig* code to use GSettings --- calendar/gui/e-cal-config.c | 6 +++--- calendar/gui/e-cal-config.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/e-cal-config.c b/calendar/gui/e-cal-config.c index 8269a1067e..99a2487f98 100644 --- a/calendar/gui/e-cal-config.c +++ b/calendar/gui/e-cal-config.c @@ -70,8 +70,8 @@ ecp_target_free (EConfig *ec, break; } case EC_CONFIG_TARGET_PREFS: { ECalConfigTargetPrefs *s = (ECalConfigTargetPrefs *) t; - if (s->gconf) - g_object_unref (s->gconf); + if (s->settings) + g_object_unref (s->settings); break; } } @@ -172,7 +172,7 @@ e_cal_config_target_new_prefs (ECalConfig *ecp) t = e_config_target_new ( &ecp->config, EC_CONFIG_TARGET_PREFS, sizeof (*t)); - t->gconf = gconf_client_get_default (); + t->settings = g_settings_new ("org.gnome.evolution.calendar"); return t; } diff --git a/calendar/gui/e-cal-config.h b/calendar/gui/e-cal-config.h index 582bdf6a53..28109ab394 100644 --- a/calendar/gui/e-cal-config.h +++ b/calendar/gui/e-cal-config.h @@ -80,7 +80,7 @@ struct _ECalConfigTargetSource { struct _ECalConfigTargetPrefs { EConfigTarget target; - struct _GConfClient *gconf; + GSettings *settings; }; typedef struct _EConfigItem ECalConfigItem; -- cgit