aboutsummaryrefslogtreecommitdiffstats
path: root/a11y
diff options
context:
space:
mode:
Diffstat (limited to 'a11y')
-rw-r--r--a11y/ChangeLog5
-rw-r--r--a11y/calendar/ea-week-view.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/a11y/ChangeLog b/a11y/ChangeLog
index 9505ec21a5..5f433514e4 100644
--- a/a11y/ChangeLog
+++ b/a11y/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22 Kidd Wang <kidd.wang@sun.com>
+
+ * 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.
+
2004-03-15 JP Rosevear <jpr@ximian.com>
* calendar/ea-cal-view.h: fix include
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)