gtk+ r19952 - in trunk: . demos/gtk-demo
- From: bratsche svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r19952 - in trunk: . demos/gtk-demo
- Date: Mon, 31 Mar 2008 22:45:27 +0100 (BST)
Author: bratsche
Date: Mon Mar 31 22:45:22 2008
New Revision: 19952
URL: http://svn.gnome.org/viewvc/gtk+?rev=19952&view=rev
Log:
2008-03-31 Cody Russell <bratsche gnome org>
* demos/gtk-demo/printing.c (draw_page): Move down each line in
units of text_height rather than in units of data->font_size.
(totally awesome catch by Dom Lachowicz)
Modified:
trunk/ChangeLog
trunk/demos/gtk-demo/printing.c
Modified: trunk/demos/gtk-demo/printing.c
==============================================================================
--- trunk/demos/gtk-demo/printing.c (original)
+++ trunk/demos/gtk-demo/printing.c Mon Mar 31 22:45:22 2008
@@ -49,6 +49,7 @@
data->num_lines = i;
data->num_pages = (data->num_lines - 1) / data->lines_per_page + 1;
+
gtk_print_operation_set_n_pages (operation, data->num_pages);
}
@@ -122,7 +123,7 @@
{
pango_layout_set_text (layout, data->lines[line], -1);
pango_cairo_show_layout (cr, layout);
- cairo_rel_move_to (cr, 0, data->font_size);
+ cairo_rel_move_to (cr, 0, text_height);
line++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]