aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/ea-cal-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-06-06 21:54:19 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:26 +0800
commite68165697e841eba3b957cb64b96b9c404ba1e15 (patch)
treec9960e8a75a7e444593930ffb436a31d8f3880bc /calendar/gui/ea-cal-view.c
parent7339bac110f97455284b90af976f762e7b1c35aa (diff)
downloadgsoc2013-evolution-e68165697e841eba3b957cb64b96b9c404ba1e15.tar.gz
gsoc2013-evolution-e68165697e841eba3b957cb64b96b9c404ba1e15.tar.zst
gsoc2013-evolution-e68165697e841eba3b957cb64b96b9c404ba1e15.zip
Bug #643526 - Crash in et_get_n_children
Diffstat (limited to 'calendar/gui/ea-cal-view.c')
-rw-r--r--calendar/gui/ea-cal-view.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/calendar/gui/ea-cal-view.c b/calendar/gui/ea-cal-view.c
index 300ca3b738..7e50284226 100644
--- a/calendar/gui/ea-cal-view.c
+++ b/calendar/gui/ea-cal-view.c
@@ -174,7 +174,6 @@ static AtkObject*
ea_cal_view_get_parent (AtkObject *accessible)
{
ECalendarView *cal_view;
- GnomeCalendar *gnomeCalendar;
GtkWidget *widget;
g_return_val_if_fail (EA_IS_CAL_VIEW (accessible), NULL);
@@ -184,9 +183,8 @@ ea_cal_view_get_parent (AtkObject *accessible)
return NULL;
cal_view = E_CALENDAR_VIEW (widget);
- gnomeCalendar = e_calendar_view_get_calendar (cal_view);
- return gtk_widget_get_accessible (GTK_WIDGET (gnomeCalendar));
+ return gtk_widget_get_accessible (gtk_widget_get_parent (GTK_WIDGET (cal_view)));
}
static void