From 8f01d97298b6f7d226fc5df4a0d8afe8f78c55c1 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 6 Jun 2011 15:54:19 +0200 Subject: Bug #643526 - Crash in et_get_n_children --- calendar/gui/ea-cal-view.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'calendar/gui') 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 -- cgit