aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/calendar/ea-week-view.c
diff options
context:
space:
mode:
authorKidd Wang <kiddwang@src.gnome.org>2004-04-23 15:04:33 +0800
committerKidd Wang <kiddwang@src.gnome.org>2004-04-23 15:04:33 +0800
commit2ecf94cf3a22c80ca22a4b1cef1fac6c950695f4 (patch)
tree85d961d0a0d308ef025186d15b06066e93b99f27 /a11y/calendar/ea-week-view.c
parent5f1e465e9b89ba85c7326fbef78e34dc7ce8c5c8 (diff)
downloadgsoc2013-evolution-2ecf94cf3a22c80ca22a4b1cef1fac6c950695f4.tar.gz
gsoc2013-evolution-2ecf94cf3a22c80ca22a4b1cef1fac6c950695f4.tar.zst
gsoc2013-evolution-2ecf94cf3a22c80ca22a4b1cef1fac6c950695f4.zip
If the week view has no spans, there is no visible events in the view.
* calendar/ea-week-view.c: (ea_week_view_get_n_children): If the week view has no spans, there is no visible events in the view. svn path=/trunk/; revision=25596
Diffstat (limited to 'a11y/calendar/ea-week-view.c')
-rw-r--r--a11y/calendar/ea-week-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/a11y/calendar/ea-week-view.c b/a11y/calendar/ea-week-view.c
index 966ec49b28..23e6e649c3 100644
--- a/a11y/calendar/ea-week-view.c
+++ b/a11y/calendar/ea-week-view.c
@@ -206,6 +206,10 @@ ea_week_view_get_n_children (AtkObject *accessible)
EWeekViewEvent *event;
EWeekViewEventSpan *span;
+ /* If week_view->spans == NULL, there is no visible events. */
+ if (!week_view->spans)
+ break;
+
event = &g_array_index (week_view->events,
EWeekViewEvent, event_index);
if (!event)