From 873dfc7f89dcda2ce62feee64f6e800ba79fd84f Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 9 Mar 2000 14:25:56 +0000 Subject: replaced "Calendar *cal" with "CalClient *calc" in the GnomeCalendar * gui/gnome-cal.h: replaced "Calendar *cal" with "CalClient *calc" in the GnomeCalendar struct. * gui/*.c: tracked change from Calendar * to CalClient * gui/main.c: moved alarm_defaults from here to cal-util/calobj.c (calendar_get_events_in_range): pulled this out of calendar.c and fixed it up to use cal-client stuff. i'm not sure where to put it yet. * gui/main.c (calendar_iterate): pulled this one out of calendar.c also svn path=/trunk/; revision=2090 --- calendar/gui/month-view.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'calendar/gui/month-view.c') diff --git a/calendar/gui/month-view.c b/calendar/gui/month-view.c index 0a7386f9e4..7d2d6c29bb 100644 --- a/calendar/gui/month-view.c +++ b/calendar/gui/month-view.c @@ -83,7 +83,8 @@ do_quick_view_popup (MonthView *mv, GdkEventButton *event, int day) day_begin_time = time_from_day (mv->year, mv->month, day); day_end_time = time_day_end (day_begin_time); - list = calendar_get_events_in_range (mv->calendar->cal, day_begin_time, day_end_time); + list = calendar_get_events_in_range (mv->calendar->calc, + day_begin_time, day_end_time); strftime (date_str, sizeof (date_str), _("%a %b %d %Y"), localtime (&day_begin_time)); qv = quick_view_new (mv->calendar, date_str, list); @@ -91,7 +92,7 @@ do_quick_view_popup (MonthView *mv, GdkEventButton *event, int day) quick_view_do_popup (QUICK_VIEW (qv), event); gtk_widget_destroy (qv); - calendar_destroy_event_list (list); + /* calendar_destroy_event_list (list); DELETE / FIX ME*/ } /* Callback used to destroy the popup menu when the month view is destroyed */ @@ -679,7 +680,8 @@ month_view_update (MonthView *mv, iCalObject *object, int flags) ii.month_begin = time_month_begin (t); ii.month_end = time_month_end (t); - calendar_iterate (mv->calendar->cal, ii.month_begin, ii.month_end, add_event, &ii); + calendar_iterate (mv->calendar, + ii.month_begin, ii.month_end, add_event, &ii); for (i = 0; i < 42; i++) { /* Delete the last character if it is a newline */ -- cgit v1.2.3