diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-02 09:12:44 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-02 09:12:44 +0800 |
commit | 8962868ff902e58456c545478e62796029d1fe5c (patch) | |
tree | d43efa77beba51f716a259a3538dd55a38711923 /calendar/gui/e-day-view.c | |
parent | 6b2a55be48922c9fe5c94d654a4d463f23a428f2 (diff) | |
download | gsoc2013-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-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index cb69eecf50..8184cfbdb6 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -607,44 +607,44 @@ day_view_constructed (GObject *object) shell_settings = e_cal_model_get_shell_settings (model); e_binding_new ( - G_OBJECT (shell_settings), "cal-day-view-show-week-numbers", - G_OBJECT (day_view->week_number_label), "visible"); + shell_settings, "cal-day-view-show-week-numbers", + day_view->week_number_label, "visible"); e_binding_new ( - G_OBJECT (shell_settings), "cal-marcus-bains-show-line", - G_OBJECT (day_view), "marcus-bains-show-line"); + shell_settings, "cal-marcus-bains-show-line", + day_view, "marcus-bains-show-line"); e_binding_new ( - G_OBJECT (shell_settings), "cal-marcus-bains-day-view-color", - G_OBJECT (day_view), "marcus-bains-day-view-color"); + shell_settings, "cal-marcus-bains-day-view-color", + day_view, "marcus-bains-day-view-color"); e_binding_new ( - G_OBJECT (shell_settings), "cal-marcus-bains-time-bar-color", - G_OBJECT (day_view), "marcus-bains-time-bar-color"); + shell_settings, "cal-marcus-bains-time-bar-color", + day_view, "marcus-bains-time-bar-color"); e_binding_new ( - G_OBJECT (shell_settings), "cal-time-divisions", - G_OBJECT (day_view), "mins-per-row"); + shell_settings, "cal-time-divisions", + day_view, "mins-per-row"); e_binding_new ( - G_OBJECT (shell_settings), "cal-work-day-end-hour", - G_OBJECT (day_view), "work-day-end-hour"); + shell_settings, "cal-work-day-end-hour", + day_view, "work-day-end-hour"); e_binding_new ( - G_OBJECT (shell_settings), "cal-work-day-end-minute", - G_OBJECT (day_view), "work-day-end-minute"); + shell_settings, "cal-work-day-end-minute", + day_view, "work-day-end-minute"); e_binding_new ( - G_OBJECT (shell_settings), "cal-work-day-start-hour", - G_OBJECT (day_view), "work-day-start-hour"); + shell_settings, "cal-work-day-start-hour", + day_view, "work-day-start-hour"); e_binding_new ( - G_OBJECT (shell_settings), "cal-work-day-start-minute", - G_OBJECT (day_view), "work-day-start-minute"); + shell_settings, "cal-work-day-start-minute", + day_view, "work-day-start-minute"); e_binding_new ( - G_OBJECT (shell_settings), "cal-working-days-bitset", - G_OBJECT (day_view), "working-days"); + shell_settings, "cal-working-days-bitset", + day_view, "working-days"); g_signal_connect_swapped ( model, "notify::week-start-day", |