diff options
author | Li Yuan <li.yuan@sun.com> | 2005-03-21 16:15:22 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2005-03-21 16:15:22 +0800 |
commit | e9a265f68515eb3545d32fce66e4a3b270d51e84 (patch) | |
tree | 9d2d34c48bb740b8e20ec12fd50f60510ad7c5ff /calendar/gui | |
parent | 66296dadd3be43341d9991097f972aedd525ea06 (diff) | |
download | gsoc2013-evolution-e9a265f68515eb3545d32fce66e4a3b270d51e84.tar gsoc2013-evolution-e9a265f68515eb3545d32fce66e4a3b270d51e84.tar.gz gsoc2013-evolution-e9a265f68515eb3545d32fce66e4a3b270d51e84.tar.bz2 gsoc2013-evolution-e9a265f68515eb3545d32fce66e4a3b270d51e84.tar.lz gsoc2013-evolution-e9a265f68515eb3545d32fce66e4a3b270d51e84.tar.xz gsoc2013-evolution-e9a265f68515eb3545d32fce66e4a3b270d51e84.tar.zst gsoc2013-evolution-e9a265f68515eb3545d32fce66e4a3b270d51e84.zip |
Fixes #44579
2005-03-21 Li Yuan <li.yuan@sun.com>
* gui/print.c: (print_comp_item):
Fixes #44579
svn path=/trunk/; revision=29068
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/print.c | 18 |
1 files changed, 15 insertions, 3 deletions
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 */ |