diff options
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/print.c | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 92df29159c..3ada63611e 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,11 @@ 2005-10-01 Chenthill Palanisamy <pchenthill@novell.com> + Fixes #244981 + * gui/print.c: (print_week_day_event): Add the end date + while printing in the week view. + +2005-10-01 Chenthill Palanisamy <pchenthill@novell.com> + Fixes #316954 * gui/e-calendar-view.c: (e_calendar_view_edit_appointment): Set the USER_ORG flag if the appointment is converted to a meeting. 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); } |