aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRadek Doulik <rodo@src.gnome.org>2004-01-19 23:19:09 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-01-19 23:19:09 +0800
commiteb91c594103412060160a040268afaacefa22e8f (patch)
tree18467d87e758e7293d29612e82b08be08d03d995 /calendar/gui
parent0cf467c8ec6576386137467b18e70ed8f4293a81 (diff)
downloadgsoc2013-evolution-eb91c594103412060160a040268afaacefa22e8f.tar.gz
gsoc2013-evolution-eb91c594103412060160a040268afaacefa22e8f.tar.zst
gsoc2013-evolution-eb91c594103412060160a040268afaacefa22e8f.zip
(print_month_small): use e_cal_model_generate_instances
(instance_cb): use ECalModelGenerateInstancesData svn path=/trunk/; revision=24306
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/print.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index e4b0dbe737..f83cb473b5 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -548,7 +548,8 @@ format_date(time_t time, int flags, char *buffer, int bufflen)
static gboolean
instance_cb (ECalComponent *comp, time_t instance_start, time_t instance_end, gpointer data)
{
- gboolean *found = data;
+
+ gboolean *found = ((ECalModelGenerateInstancesData *) data)->cb_data;
*found = TRUE;
@@ -663,9 +664,9 @@ print_month_small (GnomePrintContext *pc, GnomeCalendar *gcal, time_t month,
sprintf (buf, "%d", day);
/* this is a slow messy way to do this ... but easy ... */
- e_cal_generate_instances (client, now,
- time_day_end_with_zone (now, zone),
- instance_cb, &found);
+ e_cal_model_generate_instances (gnome_calendar_get_calendar_model (gcal), now,
+ time_day_end_with_zone (now, zone),
+ instance_cb, &found);
font = found ? font_bold : font_normal;