aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/calendar/ea-calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'a11y/calendar/ea-calendar.c')
-rw-r--r--a11y/calendar/ea-calendar.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/a11y/calendar/ea-calendar.c b/a11y/calendar/ea-calendar.c
index 0882f9c653..bb528cb919 100644
--- a/a11y/calendar/ea-calendar.c
+++ b/a11y/calendar/ea-calendar.c
@@ -112,14 +112,15 @@ ea_calendar_focus_watcher (GSignalInvocationHint *ihint,
canvas_item = GNOME_CANVAS_ITEM (object);
if (event->type == GDK_FOCUS_CHANGE) {
- if (event->focus_change.in)
+ if (event->focus_change.in) {
ea_event =
ea_calendar_helpers_get_accessible_for (canvas_item);
- else
- /* focus out */
- ea_event = NULL;
- atk_focus_tracker_notify (ea_event);
+ if (!ea_event)
+ /* not canvas item we want */
+ return TRUE;
+ }
+ atk_focus_tracker_notify (ea_event);
}
}
else if (E_IS_DAY_VIEW (object)) {