gtk+2.0 (2.20.1-2) 061_use_pdf_as_default_printing_standard.patch

Summary

 modules/printbackends/cups/gtkprintbackendcups.c |    4 +++-
 modules/printbackends/lpr/gtkprintbackendlpr.c   |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

Index: b/modules/printbackends/cups/gtkprintbackendcups.c
===================================================================
--- a/modules/printbackends/cups/gtkprintbackendcups.c	2010-04-10 14:52:03.613942573 +0200
+++ b/modules/printbackends/cups/gtkprintbackendcups.c	2010-04-10 14:52:11.941944957 +0200
@@ -343,8 +343,9 @@
  
   /* TODO: check if it is a ps or pdf printer */
   
-  surface = cairo_ps_surface_create_for_stream  (_cairo_write_to_cups, cache_io, width, height);
+  surface = cairo_pdf_surface_create_for_stream  (_cairo_write_to_cups, cache_io, width, height);
 
+  /*
   ppd_file = gtk_printer_cups_get_ppd (GTK_PRINTER_CUPS (printer));
 
   if (ppd_file != NULL)
@@ -402,6 +403,7 @@
 
   if (level == 3)
     cairo_ps_surface_restrict_to_level (surface, CAIRO_PS_LEVEL_3);
+  */
 
   cairo_surface_set_fallback_resolution (surface,
                                          2.0 * gtk_print_settings_get_printer_lpi (settings),
Index: b/modules/printbackends/lpr/gtkprintbackendlpr.c
===================================================================
--- a/modules/printbackends/lpr/gtkprintbackendlpr.c	2010-04-10 14:52:03.585944592 +0200
+++ b/modules/printbackends/lpr/gtkprintbackendlpr.c	2010-04-10 14:52:11.941944957 +0200
@@ -31,6 +31,8 @@
 #include <cairo.h>
 #include <cairo-ps.h>
 
+#include <cairo-pdf.h>
+
 #include <glib/gi18n-lib.h>
 
 #include <gtk/gtk.h>
@@ -209,7 +211,7 @@
 {
   cairo_surface_t *surface;
   
-  surface = cairo_ps_surface_create_for_stream (_cairo_write, cache_io, width, height);
+  surface = cairo_pdf_surface_create_for_stream (_cairo_write, cache_io, width, height);
 
   cairo_surface_set_fallback_resolution (surface,
                                          2.0 * gtk_print_settings_get_printer_lpi (settings),