diff options
author | Kidd Wang <kiddwang@src.gnome.org> | 2004-04-23 15:04:33 +0800 |
---|---|---|
committer | Kidd Wang <kiddwang@src.gnome.org> | 2004-04-23 15:04:33 +0800 |
commit | 2ecf94cf3a22c80ca22a4b1cef1fac6c950695f4 (patch) | |
tree | 85d961d0a0d308ef025186d15b06066e93b99f27 /a11y | |
parent | 5f1e465e9b89ba85c7326fbef78e34dc7ce8c5c8 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | a11y/ChangeLog | 5 | ||||
-rw-r--r-- | a11y/calendar/ea-week-view.c | 4 |
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) |