diff options
author | Bolian Yin <bolian.yin@sun.com> | 2003-12-09 09:28:57 +0800 |
---|---|---|
committer | Bolian Yin <byin@src.gnome.org> | 2003-12-09 09:28:57 +0800 |
commit | 832436edc45892c3c9c35037596110027bdeacd4 (patch) | |
tree | 7ddd20ca85d44158ba05941065875c9587421ea7 /a11y/calendar/ea-calendar.c | |
parent | e6b3dd0cce336691b2ce44143f67bab26ae58f7e (diff) | |
download | gsoc2013-evolution-832436edc45892c3c9c35037596110027bdeacd4.tar.gz gsoc2013-evolution-832436edc45892c3c9c35037596110027bdeacd4.tar.zst gsoc2013-evolution-832436edc45892c3c9c35037596110027bdeacd4.zip |
shortcut when cal_view is NULL. Change an action name. add check for event
2003-12-05 Bolian Yin <bolian.yin@sun.com>
* calendar/ea-cal-view-event.c (ea_cal_view_event_new): shortcut when cal_view is NULL.
* calendar/ea-cal-view.c: Change an action name.
* calendar/ea-calendar.c (ea_calendar_focus_watcher): add check for event atk object.
* calendar/ea-week-view.c (ea_week_view_get_n_children): correct impl.
(get_visible_text_item_count): removed.
svn path=/trunk/; revision=23678
Diffstat (limited to 'a11y/calendar/ea-calendar.c')
-rw-r--r-- | a11y/calendar/ea-calendar.c | 11 |
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)) { |