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-meeting-time-sel.c | |
parent | 6b2a55be48922c9fe5c94d654a4d463f23a428f2 (diff) | |
download | gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.gz gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.bz2 gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.lz gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.xz 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-meeting-time-sel.c')
-rw-r--r-- | calendar/gui/e-meeting-time-sel.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c index ea6fca83c9..633af15e6d 100644 --- a/calendar/gui/e-meeting-time-sel.c +++ b/calendar/gui/e-meeting-time-sel.c @@ -742,16 +742,16 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em e_date_edit_set_show_time (E_DATE_EDIT (mts->start_date_edit), TRUE); e_binding_new ( - G_OBJECT (mts), "show-week-numbers", - G_OBJECT (mts->start_date_edit), "show-week-numbers"); + mts, "show-week-numbers", + mts->start_date_edit, "show-week-numbers"); e_binding_new ( - G_OBJECT (mts), "use-24-hour-format", - G_OBJECT (mts->start_date_edit), "use-24-hour-format"); + mts, "use-24-hour-format", + mts->start_date_edit, "use-24-hour-format"); e_binding_new ( - G_OBJECT (mts), "week-start-day", - G_OBJECT (mts->start_date_edit), "week-start-day"); + mts, "week-start-day", + mts->start_date_edit, "week-start-day"); gtk_table_attach (GTK_TABLE (table), mts->start_date_edit, 1, 2, 0, 1, GTK_FILL, 0, 0, 0); @@ -779,16 +779,16 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em e_date_edit_set_show_time (E_DATE_EDIT (mts->end_date_edit), TRUE); e_binding_new ( - G_OBJECT (mts), "show-week-numbers", - G_OBJECT (mts->end_date_edit), "show-week-numbers"); + mts, "show-week-numbers", + mts->end_date_edit, "show-week-numbers"); e_binding_new ( - G_OBJECT (mts), "use-24-hour-format", - G_OBJECT (mts->end_date_edit), "use-24-hour-format"); + mts, "use-24-hour-format", + mts->end_date_edit, "use-24-hour-format"); e_binding_new ( - G_OBJECT (mts), "week-start-day", - G_OBJECT (mts->end_date_edit), "week-start-day"); + mts, "week-start-day", + mts->end_date_edit, "week-start-day"); gtk_table_attach (GTK_TABLE (table), mts->end_date_edit, 1, 2, 1, 2, GTK_FILL, 0, 0, 0); |