From 2836a54dd6d61e35d1446f9a23a628064516a309 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 4 Mar 2010 23:38:41 -0500 Subject: Work around recent GTK+ deprecations. --- widgets/misc/e-calendar-item.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/misc/e-calendar-item.c') diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c index 84adf6185f..def7019c21 100644 --- a/widgets/misc/e-calendar-item.c +++ b/widgets/misc/e-calendar-item.c @@ -1552,7 +1552,11 @@ e_calendar_item_draw_day_numbers (ECalendarItem *calitem, day_style = calitem->styles[(month_offset + 1) * 32 + day_num]; /* Get the colors & style to use for the day.*/ +#if GTK_CHECK_VERSION(2,19,7) + if ((gtk_widget_has_focus (GTK_WIDGET (item->canvas))) && +#else if ((GTK_WIDGET_HAS_FOCUS(item->canvas)) && +#endif item->canvas->focused_item == item) has_focus = TRUE; else -- cgit v1.2.3