From 8962868ff902e58456c545478e62796029d1fe5c Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 1 Sep 2009 21:12:44 -0400 Subject: Relax the EBinding API to reduce GObject casting. Also make it more fault-tolerant by warning about non-existent property names instead of just crashing. --- calendar/gui/e-week-view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'calendar/gui/e-week-view.c') diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index d4043ff4fe..fc9237e6ea 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -311,12 +311,12 @@ week_view_constructed (GObject *object) 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"); + shell_settings, "cal-compress-weekend", + week_view, "compress-weekend"); e_binding_new ( - G_OBJECT (shell_settings), "cal-show-event-end-times", - G_OBJECT (week_view), "show-event-end-times"); + shell_settings, "cal-show-event-end-times", + week_view, "show-event-end-times"); g_signal_connect_swapped ( model, "notify::week-start-day", -- cgit v1.2.3