diff options
author | Harry Lu <harry.lu@sun.com> | 2006-03-06 17:56:30 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2006-03-06 17:56:30 +0800 |
commit | efea37666f7a61f329cbd12e0e9d09cff32d45da (patch) | |
tree | d6ba59439a997c90efabe366d4517b6902ce75a9 /a11y | |
parent | 93d59c50395b14323cc61509655e16f2f425b2fd (diff) | |
download | gsoc2013-evolution-efea37666f7a61f329cbd12e0e9d09cff32d45da.tar gsoc2013-evolution-efea37666f7a61f329cbd12e0e9d09cff32d45da.tar.gz gsoc2013-evolution-efea37666f7a61f329cbd12e0e9d09cff32d45da.tar.bz2 gsoc2013-evolution-efea37666f7a61f329cbd12e0e9d09cff32d45da.tar.lz gsoc2013-evolution-efea37666f7a61f329cbd12e0e9d09cff32d45da.tar.xz gsoc2013-evolution-efea37666f7a61f329cbd12e0e9d09cff32d45da.tar.zst gsoc2013-evolution-efea37666f7a61f329cbd12e0e9d09cff32d45da.zip |
Fix for 331550.
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.
svn path=/trunk/; revision=31655
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); |