aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-cal-shell-settings.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-15 15:04:08 +0800
committerMilan Crha <mcrha@redhat.com>2012-06-15 15:04:08 +0800
commit94daae3dba8e86e88f69320bc82795fe660ec9cd (patch)
tree9965d4f6dfc6d48adecd0b9084442185d73d58c7 /modules/calendar/e-cal-shell-settings.c
parent08dedf0a8a520b55c51a8117dc015915ec39f7fe (diff)
downloadgsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar.gz
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar.bz2
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar.lz
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar.xz
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar.zst
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.zip
Remove the last remaining usage of GConf
Diffstat (limited to 'modules/calendar/e-cal-shell-settings.c')
-rw-r--r--modules/calendar/e-cal-shell-settings.c37
1 files changed, 17 insertions, 20 deletions
diff --git a/modules/calendar/e-cal-shell-settings.c b/modules/calendar/e-cal-shell-settings.c
index e160d18810..ade121d9c7 100644
--- a/modules/calendar/e-cal-shell-settings.c
+++ b/modules/calendar/e-cal-shell-settings.c
@@ -104,10 +104,10 @@ transform_icaltimezone_to_string (GBinding *binding,
}
static gboolean
-transform_weekdays_gconf_to_evolution (GBinding *binding,
- const GValue *source_value,
- GValue *target_value,
- gpointer user_data)
+transform_weekdays_settings_to_evolution (GBinding *binding,
+ const GValue *source_value,
+ GValue *target_value,
+ gpointer user_data)
{
GDateWeekday weekday;
@@ -119,7 +119,7 @@ transform_weekdays_gconf_to_evolution (GBinding *binding,
/* This is purposefully verbose for better readability. */
- /* GConf numbering */
+ /* setting numbering */
switch (g_value_get_int (source_value)) {
case 0:
weekday = G_DATE_SUNDAY;
@@ -177,10 +177,10 @@ transform_weekdays_gconf_to_evolution (GBinding *binding,
}
static gboolean
-transform_weekdays_evolution_to_gconf (GBinding *binding,
- const GValue *source_value,
- GValue *target_value,
- gpointer user_data)
+transform_weekdays_evolution_to_settings (GBinding *binding,
+ const GValue *source_value,
+ GValue *target_value,
+ gpointer user_data)
{
GDateWeekday weekday;
@@ -192,7 +192,7 @@ transform_weekdays_evolution_to_gconf (GBinding *binding,
/* This is purposefully verbose for better readability. */
- /* GConf numbering */
+ /* setting numbering */
switch (g_value_get_int (source_value)) {
case 0:
weekday = G_DATE_MONDAY;
@@ -692,7 +692,7 @@ e_cal_shell_backend_init_settings (EShell *shell)
/* Do not bind to this. Use "cal-week-start-day" instead. */
e_shell_settings_install_property_for_key (
- "cal-week-start-day-gconf",
+ "cal-week-start-day-setting",
CALENDAR_SCHEMA,
"week-start-day");
@@ -727,11 +727,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
"prefer-new-item");
/* These properties use transform functions to convert
- * GConf values to forms more useful to Evolution. We
- * have to use separate properties because GConfBridge
- * does not support transform functions. Much of this
- * is backward-compatibility cruft for poorly designed
- * GConf schemas. */
+ * GSettings values to forms more useful to Evolution.
+ */
e_shell_settings_install_property (
g_param_spec_enum (
@@ -815,15 +812,15 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
g_object_bind_property_full (
- shell_settings, "cal-week-start-day-gconf",
+ shell_settings, "cal-week-start-day-setting",
shell_settings, "cal-week-start-day",
G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE,
- transform_weekdays_gconf_to_evolution,
- transform_weekdays_evolution_to_gconf,
+ transform_weekdays_settings_to_evolution,
+ transform_weekdays_evolution_to_settings,
NULL, (GDestroyNotify) NULL);
- /* XXX These are my favorite. Storing a bit array in GConf
+ /* XXX These are my favorite. Storing a bit array in GSettings
* instead of separate boolean keys. Brilliant move. */
e_shell_settings_install_property (