Commit 289d5985 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent 61a9c9a7
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)
......
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)
......
......@@ -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;
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment