aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/calendar
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2006-03-06 17:56:30 +0800
committerHarry Lu <haip@src.gnome.org>2006-03-06 17:56:30 +0800
commitefea37666f7a61f329cbd12e0e9d09cff32d45da (patch)
treed6ba59439a997c90efabe366d4517b6902ce75a9 /a11y/calendar
parent93d59c50395b14323cc61509655e16f2f425b2fd (diff)
downloadgsoc2013-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/calendar')
-rw-r--r--a11y/calendar/ea-day-view.c3
-rw-r--r--a11y/calendar/ea-week-view.c3
2 files changed, 6 insertions, 0 deletions
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);