[perl-Gnome2-Rsvg] Adjust the Cairo rendering methods



commit 69cb45e4bcf1071205c09f18f3a7c6406bbc4b54
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date:   Mon May 17 23:50:13 2010 +0200

    Adjust the Cairo rendering methods
    
    As of librsvg-2.0 >= 2.22, rsvg_handle_render_cairo and
    rsvg_handle_render_cairo_sub return booleans.  Adapt the wrappers.  Also, allow
    undef for the id argument of render_cairo_sub.

 xs/Rsvg.xs |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/xs/Rsvg.xs b/xs/Rsvg.xs
index 2c9a802..a942043 100644
--- a/xs/Rsvg.xs
+++ b/xs/Rsvg.xs
@@ -295,10 +295,20 @@ rsvg_handle_get_metadata (handle)
 
 #endif /* 2.10.0 */
 
+#if LIBRSVG_CHECK_VERSION (2, 22, 0)
+
+gboolean rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr);
+
+gboolean rsvg_handle_render_cairo_sub(RsvgHandle *handle, cairo_t *cr, const char_ornull * id);
+
+#else
+
 #if LIBRSVG_CHECK_VERSION (2, 14, 0)
 
 void rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr);
 
-void rsvg_handle_render_cairo_sub(RsvgHandle *handle, cairo_t *cr, const char * id);
+void rsvg_handle_render_cairo_sub(RsvgHandle *handle, cairo_t *cr, const char_ornull * id);
+
+#endif
 
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]