aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/print.c18
2 files changed, 20 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 191738287b..5794f177df 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-21 Li Yuan <li.yuan@sun.com>
+
+ * gui/print.c: (print_comp_item):
+ Fixes #44579
+
2005-03-17 Chenthill Palanisamy <pchenthill@novell.com>
Fixes #68525, 68580
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 */