aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-05-28 23:05:26 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-05-28 23:05:26 +0800
commit492f7668e553b13ce98d16f5badc8032e7c148fd (patch)
treedf04b9cd1ff206c4a18254cd6d6660762b72023d /calendar/gui/e-calendar-view.c
parentdf0ce831108a5304beba90c00454f7e2f182d5fc (diff)
downloadgsoc2013-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/e-calendar-view.c')
-rw-r--r--calendar/gui/e-calendar-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index 77d8fd2051..57a96d8990 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -1166,8 +1166,10 @@ e_calendar_view_set_selected_time_range (ECalendarView *cal_view,
g_return_if_fail (E_IS_CALENDAR_VIEW (cal_view));
+ /* Not all views implement this, so return silently. */
class = E_CALENDAR_VIEW_GET_CLASS (cal_view);
- g_return_if_fail (class->set_selected_time_range != NULL);
+ if (class->set_selected_time_range == NULL)
+ return;
class->set_selected_time_range (cal_view, start_time, end_time);
}