diff --git a/ChangeLog b/ChangeLog index ff5a88e9f5..09790d6231 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-06-10 Matthias Clasen + * 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) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ff5a88e9f5..09790d6231 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,10 @@ 2006-06-10 Matthias Clasen + * 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) diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c index 512eae936a..5921b0f369 100644 --- a/gtk/gtkprintoperation.c +++ b/gtk/gtkprintoperation.c @@ -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; diff --git a/modules/printbackends/pdf/gtkprintbackendpdf.c b/modules/printbackends/pdf/gtkprintbackendpdf.c index 4a0781d250..815002d052 100644 --- a/modules/printbackends/pdf/gtkprintbackendpdf.c +++ b/modules/printbackends/pdf/gtkprintbackendpdf.c @@ -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; }