From 7cb6d32c5bce3509b3794bb754e564018e2d6b7e Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 23 Oct 2009 23:37:17 -0400 Subject: Fix a potential calendar crash. --- modules/calendar/e-cal-shell-content.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/calendar/e-cal-shell-content.c b/modules/calendar/e-cal-shell-content.c index 689b5cf22a..d1c9d8fbcc 100644 --- a/modules/calendar/e-cal-shell-content.c +++ b/modules/calendar/e-cal-shell-content.c @@ -143,7 +143,6 @@ cal_shell_content_notify_view_id_cb (ECalShellContent *cal_shell_content) static FocusLocation cal_shell_content_get_focus_location (ECalShellContent *cal_shell_content) { - GtkWidget *widget; GnomeCalendar *calendar; GnomeCalendarViewType view_type; ECalendarView *calendar_view; @@ -197,7 +196,7 @@ cal_shell_content_get_focus_location (ECalShellContent *cal_shell_content) return FOCUS_CALENDAR; } else if (E_IS_CAL_LIST_VIEW (calendar_view)) { - ECalListView *list_view = E_CAL_LIST_VIEW (widget); + ECalListView *list_view = E_CAL_LIST_VIEW (calendar_view); table = e_table_scrolled_get_table (list_view->table_scrolled); if (GTK_WIDGET_HAS_FOCUS (table)) -- cgit v1.2.3