aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-10-24 11:37:17 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-10-24 11:37:17 +0800
commit7cb6d32c5bce3509b3794bb754e564018e2d6b7e (patch)
treeab268754c0ec454a82b265999b4d686733e7a6ca /modules/calendar
parent914ec21b499162ad71be4bfbb3e6ea8198042b2b (diff)
downloadgsoc2013-evolution-7cb6d32c5bce3509b3794bb754e564018e2d6b7e.tar
gsoc2013-evolution-7cb6d32c5bce3509b3794bb754e564018e2d6b7e.tar.gz
gsoc2013-evolution-7cb6d32c5bce3509b3794bb754e564018e2d6b7e.tar.bz2
gsoc2013-evolution-7cb6d32c5bce3509b3794bb754e564018e2d6b7e.tar.lz
gsoc2013-evolution-7cb6d32c5bce3509b3794bb754e564018e2d6b7e.tar.xz
gsoc2013-evolution-7cb6d32c5bce3509b3794bb754e564018e2d6b7e.tar.zst
gsoc2013-evolution-7cb6d32c5bce3509b3794bb754e564018e2d6b7e.zip
Fix a potential calendar crash.
Diffstat (limited to 'modules/calendar')
-rw-r--r--modules/calendar/e-cal-shell-content.c3
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))