aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorVibha Yadav <yvibha@novell.com>2010-05-07 14:00:49 +0800
committerBharath Acharya <abharath@novell.com>2010-05-07 14:00:49 +0800
commit37b839a2d3be8bacf160df237e673d33b1689204 (patch)
treed2f4f4f76537734deff5ea9d91a24e6349413673 /addressbook/gui
parent0b743a787cf5cc69b2521d41e1c7f5ec8a798101 (diff)
downloadgsoc2013-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.c6
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);
}
}