From 1172430c0cacb388cace35cba714432e493b8ca0 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Sat, 1 Oct 2005 11:18:59 +0000 Subject: fixes #244981. svn path=/trunk/; revision=30461 --- calendar/ChangeLog | 6 ++++++ calendar/gui/print.c | 9 +++++++++ 2 files changed, 15 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 92df29159c..3ada63611e 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2005-10-01 Chenthill Palanisamy + + Fixes #244981 + * gui/print.c: (print_week_day_event): Add the end date + while printing in the week view. + 2005-10-01 Chenthill Palanisamy Fixes #316954 diff --git a/calendar/gui/print.c b/calendar/gui/print.c index 0fdd717abb..717c9d2110 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -1377,6 +1377,15 @@ print_week_day_event (GnomePrintContext *pc, GnomeFont *font, print_rectangle (pc, x1, x2, y1, y2, red, green, blue); print_text_size (pc, buffer, ALIGN_LEFT, x1, x2, y1, y2); x1 += gnome_font_get_width_utf8 (font, buffer) + 4; + + date_tm.tm_hour = event->end_minute / 60; + date_tm.tm_min = event->end_minute % 60; + + e_time_format_time (&date_tm, psi->use_24_hour_format, FALSE, + buffer, sizeof (buffer)); + + print_text_size (pc, buffer, ALIGN_LEFT, x1, x2, y1, y2); + x1 += gnome_font_get_width_utf8 (font, buffer) + 4; print_text_size (pc, text, ALIGN_LEFT, x1, x2, y1, y2); } -- cgit v1.2.3