diff options
Diffstat (limited to 'a11y')
-rw-r--r-- | a11y/ChangeLog | 8 | ||||
-rw-r--r-- | a11y/calendar/ea-day-view.c | 3 | ||||
-rw-r--r-- | a11y/calendar/ea-week-view.c | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/a11y/ChangeLog b/a11y/ChangeLog index 5ddaffd47d..4060cd0cee 100644 --- a/a11y/ChangeLog +++ b/a11y/ChangeLog @@ -1,3 +1,11 @@ +2006-03-06 Harry Lu <harry.lu@sun.com> + + Fix for 331550. + + * calendar/ea-day-view.c: (ea_day_view_get_name): check the visibility of gcal + before trying to get label. + * calendar/ea-week-view.c: (ea_week_view_get_name): ditto. + 2006-01-27 Kjartan Maraas <kmaraas@gnome.org> reviewed by: Harish Krishnaswamy <kharish@novell.com> diff --git a/a11y/calendar/ea-day-view.c b/a11y/calendar/ea-day-view.c index cfe96634ba..5f9eedfeca 100644 --- a/a11y/calendar/ea-day-view.c +++ b/a11y/calendar/ea-day-view.c @@ -137,6 +137,9 @@ ea_day_view_get_name (AtkObject *accessible) day_view = E_DAY_VIEW (GTK_ACCESSIBLE (accessible)->widget); gcal = e_calendar_view_get_calendar (E_CALENDAR_VIEW (day_view)); + if (!GTK_WIDGET_VISIBLE (GTK_WIDGET (gcal))) + return NULL; + label_text = ea_gnome_calendar_get_label_description (gcal); n_events = atk_object_get_n_accessible_children (accessible); diff --git a/a11y/calendar/ea-week-view.c b/a11y/calendar/ea-week-view.c index 32a46028a8..b4b68174b3 100644 --- a/a11y/calendar/ea-week-view.c +++ b/a11y/calendar/ea-week-view.c @@ -139,6 +139,9 @@ ea_week_view_get_name (AtkObject *accessible) week_view = E_WEEK_VIEW (GTK_ACCESSIBLE (accessible)->widget); gcal = e_calendar_view_get_calendar (E_CALENDAR_VIEW (week_view)); + if (!GTK_WIDGET_VISIBLE (GTK_WIDGET (gcal))) + return NULL; + label_text = ea_gnome_calendar_get_label_description (gcal); n_events = atk_object_get_n_accessible_children (accessible); |