aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/printing
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-24 04:34:03 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-24 04:34:03 +0800
commit6095a951335a4edc3d9ed8f9e31913f8413decfa (patch)
tree3738aa0f2f9b4263d56e158480195c224ef38eee /addressbook/printing
parenta8a443d6d467916af929c51e0f991b423bc8c07f (diff)
downloadgsoc2013-evolution-6095a951335a4edc3d9ed8f9e31913f8413decfa.tar
gsoc2013-evolution-6095a951335a4edc3d9ed8f9e31913f8413decfa.tar.gz
gsoc2013-evolution-6095a951335a4edc3d9ed8f9e31913f8413decfa.tar.bz2
gsoc2013-evolution-6095a951335a4edc3d9ed8f9e31913f8413decfa.tar.lz
gsoc2013-evolution-6095a951335a4edc3d9ed8f9e31913f8413decfa.tar.xz
gsoc2013-evolution-6095a951335a4edc3d9ed8f9e31913f8413decfa.tar.zst
gsoc2013-evolution-6095a951335a4edc3d9ed8f9e31913f8413decfa.zip
Remove the idle handler when we're destroyed.
2000-07-23 Christopher James Lahey <clahey@helixcode.com> * backend/ebook/e-book-view-listener.c: Remove the idle handler when we're destroyed. * printing/e-contact-print.c: Fixed the spacing on the card header. svn path=/trunk/; revision=4287
Diffstat (limited to 'addressbook/printing')
-rw-r--r--addressbook/printing/e-contact-print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c
index 55a72e0e11..00a32f0d57 100644
--- a/addressbook/printing/e-contact-print.c
+++ b/addressbook/printing/e-contact-print.c
@@ -270,7 +270,7 @@ e_contact_text_height(GnomePrintContext *pc, GnomeFont *font, double width, gcha
{
int line_count = e_contact_divide_text(pc, font, width, text, NULL);
return line_count * (gnome_font_get_ascender(font) + gnome_font_get_descender(font)) +
- line_count * .2 * font->size;
+ (line_count - 1) * .2 * font->size;
}
#if 0
@@ -454,7 +454,7 @@ e_contact_print_card (ECardSimple *simple, EContactPrintContext *ctxt)
"file_as", &file_as,
NULL);
if (ctxt->style->print_using_grey)
- e_contact_rectangle(ctxt->pc, ctxt->x, ctxt->y + ctxt->style->headings_font->size * .2, ctxt->x + column_width, ctxt->y - e_contact_text_height(ctxt->pc, ctxt->style->headings_font, column_width - 4, file_as) - ctxt->style->headings_font->size * .2, .85, .85, .85);
+ e_contact_rectangle(ctxt->pc, ctxt->x, ctxt->y + ctxt->style->headings_font->size * .3, ctxt->x + column_width, ctxt->y - e_contact_text_height(ctxt->pc, ctxt->style->headings_font, column_width - 4, file_as) - ctxt->style->headings_font->size * .3, .85, .85, .85);
e_contact_output(ctxt->pc, ctxt->style->headings_font, ctxt->x + 2, ctxt->y, column_width - 4, file_as);
ctxt->y -= e_contact_text_height(ctxt->pc, ctxt->style->headings_font, column_width - 4, file_as);
ctxt->y -= ctxt->style->headings_font->size * .2;