aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-calendar-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-calendar-item.c')
-rw-r--r--widgets/misc/e-calendar-item.c4
1 files changed, 4 insertions, 0 deletions
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