diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-05-28 23:05:26 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-05-28 23:05:26 +0800 |
commit | 492f7668e553b13ce98d16f5badc8032e7c148fd (patch) | |
tree | df04b9cd1ff206c4a18254cd6d6660762b72023d /calendar/gui/gnome-cal.c | |
parent | df0ce831108a5304beba90c00454f7e2f182d5fc (diff) | |
download | gsoc2013-evolution-492f7668e553b13ce98d16f5badc8032e7c148fd.tar gsoc2013-evolution-492f7668e553b13ce98d16f5badc8032e7c148fd.tar.gz gsoc2013-evolution-492f7668e553b13ce98d16f5badc8032e7c148fd.tar.bz2 gsoc2013-evolution-492f7668e553b13ce98d16f5badc8032e7c148fd.tar.lz gsoc2013-evolution-492f7668e553b13ce98d16f5badc8032e7c148fd.tar.xz gsoc2013-evolution-492f7668e553b13ce98d16f5badc8032e7c148fd.tar.zst gsoc2013-evolution-492f7668e553b13ce98d16f5badc8032e7c148fd.zip |
Fix a runtime warning on calendar startup.
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index a24dfa26ed..2f2bb4821d 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -484,7 +484,7 @@ gnome_calendar_constructed (GObject *object) model, "notify::week-start-day", G_CALLBACK (gnome_calendar_notify_week_start_day_cb), gcal); - gnome_calendar_update_time_range (gcal); + gnome_calendar_goto_today (gcal); } /* Class initialization function for the gnome calendar */ @@ -1615,10 +1615,9 @@ gnome_calendar_goto (GnomeCalendar *gcal, time_t new_time) gnome_calendar_set_selected_time_range (gcal, new_time); - for (i = 0; i < GNOME_CAL_LAST_VIEW; i++) { - if (E_CALENDAR_VIEW_CLASS (G_OBJECT_GET_CLASS (priv->views[i]))->set_selected_time_range) - E_CALENDAR_VIEW_CLASS (G_OBJECT_GET_CLASS (priv->views[i]))->set_selected_time_range (priv->views[i], new_time, new_time); - } + for (i = 0; i < GNOME_CAL_LAST_VIEW; i++) + e_calendar_view_set_selected_time_range ( + priv->views[i], new_time, new_time); } void |