updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / leafpad-noheader / gtkprint.c.diff
blob39d30e8ea3099e1913eb4cf05cb8a03a78f9291c
1 --- src/gtkprint.c.orig 2012-01-16 11:13:30.107709300 +0100
2 +++ src/gtkprint.c 2012-01-16 11:14:19.627707187 +0100
3 @@ -94,14 +94,14 @@
5 layout_lh = gtk_print_context_create_pango_layout(ctx);
6 pango_layout_set_font_description(layout_lh, font_desc);
7 - pango_layout_set_text(layout_lh, page_title, -1);
8 +// pango_layout_set_text(layout_lh, page_title, -1);
9 cairo_move_to(cr, 0, - 72 / 25.4 * 10);
10 pango_cairo_show_layout(cr, layout_lh);
12 page_text = g_strdup_printf("%d / %d", page_nr + 1, n_pages);
13 layout_rh = gtk_print_context_create_pango_layout(ctx);
14 pango_layout_set_font_description(layout_rh, font_desc);
15 - pango_layout_set_text(layout_rh, page_text, -1);
16 +// pango_layout_set_text(layout_rh, page_text, -1);
17 // pango_layout_set_alignment(layout_rh, PANGO_ALIGN_RIGHT);
18 pango_layout_get_size(layout_rh, &layout_width, NULL);
19 cairo_move_to(cr,