diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-10-24 11:37:17 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-10-24 11:37:17 +0800 |
commit | 7cb6d32c5bce3509b3794bb754e564018e2d6b7e (patch) | |
tree | ab268754c0ec454a82b265999b4d686733e7a6ca | |
parent | 914ec21b499162ad71be4bfbb3e6ea8198042b2b (diff) | |
download | gsoc2013-evolution-7cb6d32c5bce3509b3794bb754e564018e2d6b7e.tar.gz gsoc2013-evolution-7cb6d32c5bce3509b3794bb754e564018e2d6b7e.tar.zst gsoc2013-evolution-7cb6d32c5bce3509b3794bb754e564018e2d6b7e.zip |
Fix a potential calendar crash.
-rw-r--r-- | modules/calendar/e-cal-shell-content.c | 3 |
1 files changed, 1 insertions, 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)) |