Use cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.

2006-06-10  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkprintoperation.c:
        * modules/printbackends/pdf/gtkprintbackendpdf.c: Use
        cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.
        (#344512, Elijah Newren)
This commit is contained in:
Matthias Clasen 2006-06-11 02:30:58 +00:00 committed by Matthias Clasen
parent 61a9c9a75b
commit 289d59857f
4 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,10 @@
2006-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintoperation.c:
* modules/printbackends/pdf/gtkprintbackendpdf.c: Use
cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.
(#344512, Elijah Newren)
* gdk-2.0-uninstalled.pc.in: Make compiling against uninstalled
gdk work. (#344386, Masatake Yamamoto)

View File

@ -1,5 +1,10 @@
2006-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintoperation.c:
* modules/printbackends/pdf/gtkprintbackendpdf.c: Use
cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.
(#344512, Elijah Newren)
* gdk-2.0-uninstalled.pc.in: Make compiling against uninstalled
gdk work. (#344386, Masatake Yamamoto)

View File

@ -1796,7 +1796,7 @@ run_pdf (GtkPrintOperation *op,
surface = cairo_pdf_surface_create (priv->export_filename,
width, height);
cairo_pdf_surface_set_dpi (surface, 300, 300);
cairo_surface_set_fallback_resolution (surface, 300, 300);
priv->platform_data = surface;
priv->free_platform_data = (GDestroyNotify) cairo_surface_destroy;

View File

@ -193,7 +193,7 @@ pdf_printer_create_cairo_surface (GtkPrinter *printer,
surface = cairo_pdf_surface_create_for_stream (_cairo_write, GINT_TO_POINTER (cache_fd), width, height);
/* TODO: DPI from settings object? */
cairo_pdf_surface_set_dpi (surface, 300, 300);
cairo_surface_set_fallback_resolution (surface, 300, 300);
return surface;
}