[Commits] [SCM] claws branch, master, updated. 3.9.0-165-g4bdc5af

colin at claws-mail.org colin at claws-mail.org
Wed Apr 3 13:59:54 CEST 2013


The branch master of project "claws" (Claws Mail) has been updated
       via  4bdc5af65d7a1d03557a2ea5f7c928384630cdf2 (commit)
      from  aa8ccdb0f6e887a4cb68150883eb7d6faf0cc1f5 (commit)


- Log -----------------------------------------------------------------
commit 4bdc5af65d7a1d03557a2ea5f7c928384630cdf2
Author: Colin Leroy <colin at colino.net>
Date:   Wed Apr 3 14:00:20 2013 +0200

    Fix printed PDF quality

diff --git a/src/plugins/pdf_viewer/poppler_viewer.c b/src/plugins/pdf_viewer/poppler_viewer.c
index 03b0372..4f90908 100644
--- a/src/plugins/pdf_viewer/poppler_viewer.c
+++ b/src/plugins/pdf_viewer/poppler_viewer.c
@@ -298,7 +298,7 @@ static void pdf_viewer_scroll_to(PdfViewer *viewer, gfloat x, gfloat y)
 	g_signal_emit_by_name(G_OBJECT(vadj), "value-changed", 0);	
 }
 static void pdf_viewer_render_page(PopplerPage *page, GtkWidget *view, double width, 
-												double height, double zoom, gint rotate)
+				   double height, double zoom, gint rotate)
 {
 	GdkPixbuf *pb;
 	
@@ -1622,7 +1622,7 @@ static void pdf_viewer_cb_draw_page(GtkPrintOperation *op, GtkPrintContext *cont
   cairo_scale(cr, printing_get_zoom(print_data), printing_get_zoom(print_data));
   cairo_set_source_rgb(cr, 0., 0., 0.);
 
-  poppler_page_render(pdf_page, cr);
+  poppler_page_render_for_printing(pdf_page, cr);
 
   g_object_unref(G_OBJECT(pdf_page));
 
@@ -1640,7 +1640,7 @@ static void pdf_viewer_print(MimeViewer *mviewer)
 	pdf_renderer->cb_begin_print    = pdf_viewer_cb_begin_print;
 	pdf_renderer->cb_draw_page      = pdf_viewer_cb_draw_page;
 
-	printing_print_full(mainwin ? GTK_WINDOW(mainwin->window):NULL, 
+	printing_print_full(mainwin ? GTK_WINDOW(mainwin->window):NULL,
 			pdf_renderer, viewer->pdf_doc, -1, -1);
 	
 	g_free(pdf_renderer);

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/pdf_viewer/poppler_viewer.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list