aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-11-17 23:10:02 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-11-17 23:10:02 +0800
commit30f7d3788f7dad3dee700d36570baa11f4612634 (patch)
tree8dc95544261c622471279eb3838e3b7a511a982d /calendar
parent4efe4a85d96b9f0c330beb5489c8924f67cdca9f (diff)
downloadgsoc2013-evolution-30f7d3788f7dad3dee700d36570baa11f4612634.tar.gz
gsoc2013-evolution-30f7d3788f7dad3dee700d36570baa11f4612634.tar.zst
gsoc2013-evolution-30f7d3788f7dad3dee700d36570baa11f4612634.zip
Migrate ECalConfig* code to use GSettings
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/e-cal-config.c6
-rw-r--r--calendar/gui/e-cal-config.h2
2 files changed, 4 insertions, 4 deletions
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;