aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-08-06 09:24:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-06 09:24:53 +0800
commit6a2b0904893199ceb5b291405721845fd17a08db (patch)
tree2be4574d4e07423d7b5e197706ed01c2a613f9d2 /calendar/gui/e-week-view.c
parent9abce979580857b9273ee9efc909bfd1d3004e51 (diff)
downloadgsoc2013-evolution-6a2b0904893199ceb5b291405721845fd17a08db.tar.gz
gsoc2013-evolution-6a2b0904893199ceb5b291405721845fd17a08db.tar.zst
gsoc2013-evolution-6a2b0904893199ceb5b291405721845fd17a08db.zip
More refactoring of settings management.
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 5d08ee84de..97034f8e01 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -296,6 +296,30 @@ week_view_get_property (GObject *object,
}
static void
+week_view_constructed (GObject *object)
+{
+ ECalModel *model;
+ EWeekView *week_view;
+ EShellSettings *shell_settings;
+
+ week_view = E_WEEK_VIEW (object);
+ model = e_calendar_view_get_model (E_CALENDAR_VIEW (week_view));
+ shell_settings = e_cal_model_get_shell_settings (model);
+
+ e_binding_new (
+ G_OBJECT (shell_settings), "cal-compress-weekend",
+ G_OBJECT (week_view), "compress-weekend");
+
+ e_binding_new (
+ G_OBJECT (shell_settings), "cal-show-event-end-times",
+ G_OBJECT (week_view), "show-event-end-times");
+
+ e_binding_new (
+ G_OBJECT (shell_settings), "cal-week-start-day",
+ G_OBJECT (week_view), "week-start-day");
+}
+
+static void
week_view_cursor_key_up (EWeekView *week_view)
{
if (week_view->selection_start_day == -1)
@@ -366,6 +390,7 @@ e_week_view_class_init (EWeekViewClass *class)
object_class = G_OBJECT_CLASS (class);
object_class->set_property = week_view_set_property;
object_class->get_property = week_view_get_property;
+ object_class->constructed = week_view_constructed;
gtk_object_class = GTK_OBJECT_CLASS (class);
gtk_object_class->destroy = e_week_view_destroy;