From e9a265f68515eb3545d32fce66e4a3b270d51e84 Mon Sep 17 00:00:00 2001
From: Li Yuan
Date: Mon, 21 Mar 2005 08:15:22 +0000
Subject: Fixes #44579
2005-03-21 Li Yuan
* gui/print.c: (print_comp_item):
Fixes #44579
svn path=/trunk/; revision=29068
---
calendar/gui/print.c | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
(limited to 'calendar/gui')
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 9991f2e7cc..fceb6c06ef 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -2286,8 +2286,8 @@ print_comp_item (GnomePrintContext *pc, ECalComponent *comp, ECal *client,
ECalComponentVType vtype;
ECalComponentText text;
GSList *desc, *l;
- const char *title, *categories;
- char *categories_string;
+ const char *title, *categories, *location;
+ char *categories_string, *location_string, *summary_string;
GSList *contact_list, *elem;
gint header_size;
@@ -2317,8 +2317,20 @@ print_comp_item (GnomePrintContext *pc, ECalComponent *comp, ECal *client,
/* Summary */
font = get_font_for_size (18, GNOME_FONT_BOLD, FALSE);
e_cal_component_get_summary (comp, &text);
- top = bound_text (pc, font, text.value, left, right,
+ summary_string = g_strdup_printf (_("Summary: %s"), text.value);
+ top = bound_text (pc, font, summary_string, left, right,
top - 3, bottom, 0);
+ g_free (summary_string);
+
+ /* Location */
+ e_cal_component_get_location (comp, &location);
+ if (location && location[0]) {
+ location_string = g_strdup_printf (_("Location: %s"),
+ location);
+ top = bound_text (pc, font, location_string, left, right,
+ top - 3, bottom, 0);
+ g_free (location_string);
+ }
g_object_unref (font);
/* Date information */
--
cgit v1.2.3