diff options
author | Vibha Yadav <yvibha@novell.com> | 2010-05-07 14:00:49 +0800 |
---|---|---|
committer | Bharath Acharya <abharath@novell.com> | 2010-05-07 14:00:49 +0800 |
commit | 37b839a2d3be8bacf160df237e673d33b1689204 (patch) | |
tree | d2f4f4f76537734deff5ea9d91a24e6349413673 /addressbook/gui | |
parent | 0b743a787cf5cc69b2521d41e1c7f5ec8a798101 (diff) | |
download | gsoc2013-evolution-37b839a2d3be8bacf160df237e673d33b1689204.tar gsoc2013-evolution-37b839a2d3be8bacf160df237e673d33b1689204.tar.gz gsoc2013-evolution-37b839a2d3be8bacf160df237e673d33b1689204.tar.bz2 gsoc2013-evolution-37b839a2d3be8bacf160df237e673d33b1689204.tar.lz gsoc2013-evolution-37b839a2d3be8bacf160df237e673d33b1689204.tar.xz gsoc2013-evolution-37b839a2d3be8bacf160df237e673d33b1689204.tar.zst gsoc2013-evolution-37b839a2d3be8bacf160df237e673d33b1689204.zip |
Bug #545462 - Printing of contacts is weird.
Lot of improvements in contact printing. A few more to follow suit.
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-view.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c index 01605f3781..c4d9ad236a 100644 --- a/addressbook/gui/widgets/e-addressbook-view.c +++ b/addressbook/gui/widgets/e-addressbook-view.c @@ -1152,11 +1152,12 @@ contact_print_button_draw_page (GtkPrintOperation *operation, EPrintable *printable) { GtkPageSetup *setup; - gdouble top_margin; + gdouble top_margin, page_width; cairo_t *cr; setup = gtk_print_context_get_page_setup (context); top_margin = gtk_page_setup_get_top_margin (setup, GTK_UNIT_POINTS); + page_width = gtk_page_setup_get_page_width (setup, GTK_UNIT_POINTS); cr = gtk_print_context_get_cairo_context (context); @@ -1164,8 +1165,9 @@ contact_print_button_draw_page (GtkPrintOperation *operation, while (e_printable_data_left (printable)) { cairo_save (cr); + contact_page_draw_footer(operation,context,page_nr++); e_printable_print_page ( - printable, context, 6.5 * 72, top_margin + 10, TRUE); + printable, context, page_width - 16, top_margin + 10, TRUE); cairo_restore (cr); } } |