aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-02 09:12:44 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-02 09:12:44 +0800
commit8962868ff902e58456c545478e62796029d1fe5c (patch)
treed43efa77beba51f716a259a3538dd55a38711923 /calendar/gui/e-week-view.c
parent6b2a55be48922c9fe5c94d654a4d463f23a428f2 (diff)
downloadgsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.gz
gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.zst
gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.zip
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.
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c8
1 files changed, 4 insertions, 4 deletions
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",