From 32d802c8ba01fcba9547d335f54cb87f0acb544d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 18 Aug 2009 23:26:46 -0400 Subject: More GnomeCalendar cleanup. --- calendar/gui/goto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calendar/gui/goto.c') diff --git a/calendar/gui/goto.c b/calendar/gui/goto.c index 15e8337ce1..b795ad9291 100644 --- a/calendar/gui/goto.c +++ b/calendar/gui/goto.c @@ -213,6 +213,7 @@ void goto_dialog (GnomeCalendar *gcal) { #if 0 /* KILL-BONOBO */ + ECalModel *model; time_t start_time; struct icaltimetype tt; gint b; @@ -243,7 +244,8 @@ goto_dialog (GnomeCalendar *gcal) } dlg->gcal = gcal; - gnome_calendar_get_selected_time_range (dlg->gcal, &start_time, NULL); + model = gnome_calendar_get_model (gcal); + e_cal_model_get_time_range (model, &start_time, NULL); tt = icaltime_from_timet_with_zone (start_time, FALSE, gnome_calendar_get_timezone (gcal)); dlg->year_val = tt.year; dlg->month_val = tt.month - 1; -- cgit v1.2.3