From f156de5a4f895d4a892c6964c331fc006b2478eb Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sat, 10 Sep 2022 10:47:31 -0500 Subject: [PATCH] Remove deprecated rsvg_handle_render_cairo, add rsvg_handle_render_document. --- lua/rsvg.pkg | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lua/rsvg.pkg b/lua/rsvg.pkg index c3814bee..c97874ff 100644 --- a/lua/rsvg.pkg +++ b/lua/rsvg.pkg @@ -103,13 +103,15 @@ RsvgHandle *rsvg_handle_new_with_flags (RsvgHandleFlags flags); RsvgHandle *rsvg_handle_new_from_data (const unsigned char * data, unsigned long data_len, GError ** error); RsvgHandle *rsvg_handle_new_from_file (const char * file_name, GError ** error); -int rsvg_handle_render_cairo (RsvgHandle * handle, cairo_t * cr); - -gboolean rsvg_handle_render_layer (RsvgHandle *handle, - cairo_t *cr, - const char *id, - const RsvgRectangle *viewport, - GError **error); +gboolean rsvg_handle_render_document(RsvgHandle *handle, + cairo_t *cr, + const RsvgRectangle *viewport, + GError **error); +gboolean rsvg_handle_render_layer (RsvgHandle *handle, + cairo_t *cr, + const char *id, + const RsvgRectangle *viewport, + GError **error); void g_object_unref(gpointer object);