summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-06-11 02:30:58 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-06-11 02:30:58 +0000
commit289d59857fdbdc306d5e4d5d1a07c63cf8b90a11 (patch)
treec0041306ce2bf48ba0ae9bc58f89e9989e0d5c45
parent61a9c9a75b5013587d680d0c108b1a1120f1f0f2 (diff)
downloadgdk-pixbuf-289d59857fdbdc306d5e4d5d1a07c63cf8b90a11.tar.gz
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)
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-2-105
-rw-r--r--gtk/gtkprintoperation.c2
-rw-r--r--modules/printbackends/pdf/gtkprintbackendpdf.c2
4 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ff5a88e9f..09790d623 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index ff5a88e9f..09790d623 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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)
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c
index 512eae936..5921b0f36 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 4a0781d25..815002d05 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;
}