aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/tag-calendar.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-05 12:38:41 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-05 20:36:23 +0800
commit2836a54dd6d61e35d1446f9a23a628064516a309 (patch)
treeb9cb2ab39212de803e935ed28957ee77e73c2d96 /calendar/gui/tag-calendar.c
parentbaa7f20333a5bbb7c8cbb3cf2ce86b57aba79ef2 (diff)
downloadgsoc2013-evolution-2836a54dd6d61e35d1446f9a23a628064516a309.tar
gsoc2013-evolution-2836a54dd6d61e35d1446f9a23a628064516a309.tar.gz
gsoc2013-evolution-2836a54dd6d61e35d1446f9a23a628064516a309.tar.bz2
gsoc2013-evolution-2836a54dd6d61e35d1446f9a23a628064516a309.tar.lz
gsoc2013-evolution-2836a54dd6d61e35d1446f9a23a628064516a309.tar.xz
gsoc2013-evolution-2836a54dd6d61e35d1446f9a23a628064516a309.tar.zst
gsoc2013-evolution-2836a54dd6d61e35d1446f9a23a628064516a309.zip
Work around recent GTK+ deprecations.
Diffstat (limited to 'calendar/gui/tag-calendar.c')
-rw-r--r--calendar/gui/tag-calendar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/calendar/gui/tag-calendar.c b/calendar/gui/tag-calendar.c
index 2eddfbfec6..2d167cfa7d 100644
--- a/calendar/gui/tag-calendar.c
+++ b/calendar/gui/tag-calendar.c
@@ -144,7 +144,11 @@ tag_calendar_by_client (ECalendar *ecal, ECal *client)
g_return_if_fail (E_IS_CAL (client));
/* If the ECalendar isn't visible, we just return. */
+#if GTK_CHECK_VERSION(2,19,7)
+ if (!gtk_widget_get_visible (GTK_WIDGET (ecal)))
+#else
if (!GTK_WIDGET_VISIBLE (ecal))
+#endif
return;
if (e_cal_get_load_state (client) != E_CAL_LOAD_LOADED)
@@ -213,7 +217,11 @@ tag_calendar_by_comp (ECalendar *ecal, ECalComponent *comp, ECal *client, icalti
g_return_if_fail (E_IS_CAL_COMPONENT (comp));
/* If the ECalendar isn't visible, we just return. */
+#if GTK_CHECK_VERSION(2,19,7)
+ if (!gtk_widget_get_visible (GTK_WIDGET (ecal)))
+#else
if (!GTK_WIDGET_VISIBLE (ecal))
+#endif
return;
if (!prepare_tag (ecal, &c, display_zone, clear_first))