aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-calendar-preferences.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/calendar/e-calendar-preferences.c')
-rw-r--r--modules/calendar/e-calendar-preferences.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/calendar/e-calendar-preferences.c b/modules/calendar/e-calendar-preferences.c
index 5c71fd81fa..0079b2cf95 100644
--- a/modules/calendar/e-calendar-preferences.c
+++ b/modules/calendar/e-calendar-preferences.c
@@ -584,11 +584,14 @@ calendar_preferences_construct (ECalendarPreferences *prefs,
G_BINDING_SYNC_CREATE);
widget = e_builder_get_widget (prefs->builder, "week_start_day");
- g_object_bind_property (
+ g_object_bind_property_full (
shell_settings, "cal-week-start-day",
- widget, "active",
+ widget, "active-id",
G_BINDING_BIDIRECTIONAL |
- G_BINDING_SYNC_CREATE);
+ G_BINDING_SYNC_CREATE,
+ e_binding_transform_enum_value_to_nick,
+ e_binding_transform_enum_nick_to_value,
+ NULL, (GDestroyNotify) NULL);
widget = e_builder_get_widget (prefs->builder, "start_of_day");
prefs->start_of_day = widget; /* XXX delete this */