From 2ecf94cf3a22c80ca22a4b1cef1fac6c950695f4 Mon Sep 17 00:00:00 2001 From: Kidd Wang Date: Fri, 23 Apr 2004 07:04:33 +0000 Subject: 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 --- a11y/ChangeLog | 5 +++++ a11y/calendar/ea-week-view.c | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'a11y') 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 + + * 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 * 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) -- cgit v1.2.3