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/dialogs/schedule-page.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/dialogs/schedule-page.c')
-rw-r--r-- | calendar/gui/dialogs/schedule-page.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/calendar/gui/dialogs/schedule-page.c b/calendar/gui/dialogs/schedule-page.c index 5a7277084b..a9a7afac1e 100644 --- a/calendar/gui/dialogs/schedule-page.c +++ b/calendar/gui/dialogs/schedule-page.c @@ -429,16 +429,16 @@ schedule_page_construct (SchedulePage *spage, EMeetingStore *ems) gtk_box_pack_start (GTK_BOX (priv->main), GTK_WIDGET (priv->sel), TRUE, TRUE, 6); e_binding_new ( - G_OBJECT (shell_settings), "cal-show-week-numbers", - G_OBJECT (priv->sel), "show-week-numbers"); + shell_settings, "cal-show-week-numbers", + priv->sel, "show-week-numbers"); e_binding_new ( - G_OBJECT (shell_settings), "cal-use-24-hour-format", - G_OBJECT (priv->sel), "use-24-hour-format"); + shell_settings, "cal-use-24-hour-format", + priv->sel, "use-24-hour-format"); e_binding_new ( - G_OBJECT (shell_settings), "cal-week-start-day", - G_OBJECT (priv->sel), "week-start-day"); + shell_settings, "cal-week-start-day", + priv->sel, "week-start-day"); if (!init_widgets (spage)) { g_message ("schedule_page_construct(): " |