[evolution/wip/gsettings: 14/17] Migrate ECalConfig* code to use GSettings
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/gsettings: 14/17] Migrate ECalConfig* code to use GSettings
- Date: Fri, 18 Nov 2011 09:04:50 +0000 (UTC)
commit 30f7d3788f7dad3dee700d36570baa11f4612634
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Thu Nov 17 16:10:02 2011 +0100
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(-)
---
diff --git a/calendar/gui/e-cal-config.c b/calendar/gui/e-cal-config.c
index 8269a10..99a2487 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 582bdf6..28109ab 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]