aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/calendar/ea-cal-view-event.c
diff options
context:
space:
mode:
authorBolian Yin <bolian.yin@sun.com>2003-12-09 09:28:57 +0800
committerBolian Yin <byin@src.gnome.org>2003-12-09 09:28:57 +0800
commit832436edc45892c3c9c35037596110027bdeacd4 (patch)
tree7ddd20ca85d44158ba05941065875c9587421ea7 /a11y/calendar/ea-cal-view-event.c
parente6b3dd0cce336691b2ce44143f67bab26ae58f7e (diff)
downloadgsoc2013-evolution-832436edc45892c3c9c35037596110027bdeacd4.tar
gsoc2013-evolution-832436edc45892c3c9c35037596110027bdeacd4.tar.gz
gsoc2013-evolution-832436edc45892c3c9c35037596110027bdeacd4.tar.bz2
gsoc2013-evolution-832436edc45892c3c9c35037596110027bdeacd4.tar.lz
gsoc2013-evolution-832436edc45892c3c9c35037596110027bdeacd4.tar.xz
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-cal-view-event.c')
-rw-r--r--a11y/calendar/ea-cal-view-event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/a11y/calendar/ea-cal-view-event.c b/a11y/calendar/ea-cal-view-event.c
index a03f9a1421..37b0d5ed90 100644
--- a/a11y/calendar/ea-cal-view-event.c
+++ b/a11y/calendar/ea-cal-view-event.c
@@ -138,6 +138,9 @@ ea_cal_view_event_new (GObject *obj)
g_return_val_if_fail (E_IS_TEXT (obj), NULL);
cal_view = ea_calendar_helpers_get_cal_view_from (GNOME_CANVAS_ITEM (obj));
+ if (!cal_view)
+ return NULL;
+
if (E_IS_WEEK_VIEW (cal_view)) {
gint event_num, span_num;
EWeekViewEvent *week_view_event;