summaryrefslogtreecommitdiff
path: root/src/cairo-surface.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-06-12 08:45:58 -0700
committerCarl Worth <cworth@cworth.org>2006-06-12 09:01:06 -0700
commit0e30fc44363435c52c762fa8a353de43fe087822 (patch)
tree8baf7eb2b26adeb4b1dd29dc790e698dc289acd6 /src/cairo-surface.c
parent7015cc0b90f99898852ca276368854f9465f4c82 (diff)
Add aliases for deprecated cairo_{pdf,ps,svg}_surface_set_dpi
The aliases should allow binaries with the old symbols to continue to run. Meanwhile, the macros in cairo.h prevent any code from being compiled without using the new, future-proof function names. This is a temporary, transition strategy and the aliases will be dropped before the next major release.
Diffstat (limited to 'src/cairo-surface.c')
-rw-r--r--src/cairo-surface.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index 5c0e69ba2..3218607e1 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -742,6 +742,13 @@ cairo_surface_set_fallback_resolution (cairo_surface_t *surface,
surface->x_fallback_resolution = x_pixels_per_inch;
surface->y_fallback_resolution = y_pixels_per_inch;
}
+/* XXX: Add symbols for old, deprecated names to eas GTK+ migration
+ * pain. This is a transition strategy for prior to 1.2. These
+ * aliases should be dropped before the major release.
+ */
+CAIRO_FUNCTION_ALIAS(cairo_pdf_surface_set_dpi, cairo_surface_set_fallback_resolution);
+CAIRO_FUNCTION_ALIAS(cairo_ps_surface_set_dpi, cairo_surface_set_fallback_resolution);
+CAIRO_FUNCTION_ALIAS(cairo_svg_surface_set_dpi, cairo_surface_set_fallback_resolution);
cairo_bool_t
_cairo_surface_has_device_transform (cairo_surface_t *surface)