File: 061_use_pdf_as_default_printing_standard.patch

package info (click to toggle)
gtk%2B2.0 2.24.31-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 127,432 kB
  • ctags: 74,609
  • sloc: ansic: 573,219; makefile: 5,155; sh: 4,417; xml: 1,193; python: 891; perl: 749; awk: 72; cpp: 34
file content (20 lines) | stat: -rw-r--r-- 631 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/modules/printbackends/lpr/gtkprintbackendlpr.c
+++ b/modules/printbackends/lpr/gtkprintbackendlpr.c
@@ -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),