aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/goto.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-08-19 11:26:46 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-19 11:26:46 +0800
commit32d802c8ba01fcba9547d335f54cb87f0acb544d (patch)
tree822ec32af03e4f1376818ff542908dd94e059ec1 /calendar/gui/goto.c
parent026e76465697c7a8df48af89f4b3845902219fe7 (diff)
downloadgsoc2013-evolution-32d802c8ba01fcba9547d335f54cb87f0acb544d.tar.gz
gsoc2013-evolution-32d802c8ba01fcba9547d335f54cb87f0acb544d.tar.zst
gsoc2013-evolution-32d802c8ba01fcba9547d335f54cb87f0acb544d.zip
More GnomeCalendar cleanup.
Diffstat (limited to 'calendar/gui/goto.c')
-rw-r--r--calendar/gui/goto.c4
1 files changed, 3 insertions, 1 deletions
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;