aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model-tasks.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-cal-model-tasks.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-cal-model-tasks.c')
-rw-r--r--calendar/gui/e-cal-model-tasks.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c
index 74647e46dc..a56361905f 100644
--- a/calendar/gui/e-cal-model-tasks.c
+++ b/calendar/gui/e-cal-model-tasks.c
@@ -142,12 +142,12 @@ cal_model_tasks_constructed (GObject *object)
shell_settings = e_cal_model_get_shell_settings (model);
e_binding_new (
- G_OBJECT (shell_settings), "cal-tasks-color-due-today",
- G_OBJECT (model), "color-due-today");
+ shell_settings, "cal-tasks-color-due-today",
+ model, "color-due-today");
e_binding_new (
- G_OBJECT (shell_settings), "cal-tasks-color-overdue",
- G_OBJECT (model), "color-overdue");
+ shell_settings, "cal-tasks-color-overdue",
+ model, "color-overdue");
/* Chain up to parent's constructed() method. */
G_OBJECT_CLASS (e_cal_model_tasks_parent_class)->constructed (object);