aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index bef407c8dd..7d79a2bfb7 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -2457,7 +2457,11 @@ safe_to_process_date_changed_signal (GtkWidget *dedit_widget)
entry = e_date_edit_get_entry (dedit);
+#if GTK_CHECK_VERSION(2,19,7)
+ return !entry || !gtk_widget_has_focus (entry);
+#else
return !entry || !GTK_WIDGET_HAS_FOCUS (entry);
+#endif
}
/* Callback used when the start date widget change. We check that the