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-cal-model.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'calendar/gui/e-cal-model.c') diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index c582b0fb78..9d78274046 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -310,16 +310,16 @@ cal_model_constructed (GObject *object) shell_settings = e_cal_model_get_shell_settings (model); e_binding_new ( - G_OBJECT (shell_settings), "cal-timezone", - G_OBJECT (model), "timezone"); + shell_settings, "cal-timezone", + model, "timezone"); e_binding_new ( - G_OBJECT (shell_settings), "cal-use-24-hour-format", - G_OBJECT (model), "use-24-hour-format"); + shell_settings, "cal-use-24-hour-format", + model, "use-24-hour-format"); e_binding_new ( - G_OBJECT (shell_settings), "cal-week-start-day", - G_OBJECT (model), "week-start-day"); + shell_settings, "cal-week-start-day", + model, "week-start-day"); } static void -- cgit v1.2.3