Revision 3255

View differences:

src/printing.c
218 218
		body_h = 0.0;
219 219
	lines_left = body_h / line_h;
220 220

  
221
	g_print("layout_h = %d, line_h = %g, lines_per_page = %d\n", layout_h, line_h, lines_per_page);
222
	g_print("hdr_h = %g, body_h = %g, lines_left = %d\n", hdr_h, body_h, lines_left);
221
	debug_print("width = %g, height = %g\n", width, height);
222
	debug_print("dpi_x = %g, dpi_y = %g\n", gtk_print_context_get_dpi_x(context), gtk_print_context_get_dpi_y(context));
223
	debug_print("layout_h = %d, line_h = %g, lines_per_page = %d\n", layout_h, line_h, lines_per_page);
224
	debug_print("hdr_h = %g, body_h = %g, lines_left = %d\n", hdr_h, body_h, lines_left);
223 225

  
224 226
	if (print_data->partinfo) {
225 227
		FILE *msgfp;
......
264 266
		while (lines_left < lines) {
265 267
			PangoLayoutLine *line;
266 268

  
267
			g_print("page increment: %d: lines_left = %d, lines = %d\n", i, lines_left, lines);
269
			debug_print("page increment: %d: lines_left = %d, lines = %d\n", i, lines_left, lines);
268 270
			line_offset += lines_left;
269 271
			line = pango_layout_get_line(layout, line_offset);
270 272
			lines -= lines_left;
......
288 290
	g_object_unref(layout);
289 291

  
290 292
	n_pages = i + 1;
291
	g_print("n_pages = %d\n", n_pages);
293
	debug_print("n_pages = %d\n", n_pages);
292 294

  
293 295
	return n_pages;
294 296
}
......
413 415
		cairo_move_to(cr, 0,
414 416
			      y + (gdouble)layout_h / PANGO_SCALE + SPACING);
415 417
	}
416
	g_print("count = %d\n", count);
418
	debug_print("count = %d\n", count);
417 419

  
418 420
	desc = gtkut_get_default_font_desc();
419 421
	pango_font_description_set_size(desc, font_size);
......
476 478
		 GTK_WINDOW(main_window_get()->window), NULL);
477 479

  
478 480
	if (res == GTK_PRINT_OPERATION_RESULT_APPLY) {
479
		g_print("save settings\n");
481
		debug_print("save settings\n");
480 482
		if (settings)
481 483
			g_object_unref(settings);
482 484
		settings = g_object_ref
ChangeLog
1
2013-05-15
2

  
3
	* src/printing.c: modified debug output.
4

  
1 5
2013-05-14
2 6

  
3 7
	* src/messageview.[ch]

Also available in: Unified diff