aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/ea-week-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/ea-week-view.c')
-rw-r--r--calendar/gui/ea-week-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/ea-week-view.c b/calendar/gui/ea-week-view.c
index 6e9751eb27..c3b4658e78 100644
--- a/calendar/gui/ea-week-view.c
+++ b/calendar/gui/ea-week-view.c
@@ -134,7 +134,11 @@ 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_CHECK_VERSION(2,19,7)
+ if (!gtk_widget_get_visible (GTK_WIDGET (gcal)))
+#else
if (!GTK_WIDGET_VISIBLE (GTK_WIDGET (gcal)))
+#endif
return NULL;
label_text = ea_gnome_calendar_get_label_description (gcal);