From 05fff02e702761c3fac021093299346520822de3 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sat, 27 Feb 2021 10:01:03 -0600 Subject: [PATCH] Remove librsvg deprecated definitins. --- lua/rsvg.pkg | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lua/rsvg.pkg b/lua/rsvg.pkg index ee193d30..a1891ab7 100644 --- a/lua/rsvg.pkg +++ b/lua/rsvg.pkg @@ -80,18 +80,17 @@ typedef struct _RsvgPositionData { tolua_outside void rsvgPositionDataGet @ get(int * x, int * y); } RsvgPositionData; -RsvgHandle *rsvg_handle_new (void); -int rsvg_handle_write (RsvgHandle * handle, const unsigned char * buf, - unsigned long count, GError ** error); -int rsvg_handle_close (RsvgHandle * handle, GError ** error); - const char *rsvg_handle_get_base_uri (RsvgHandle * handle); void rsvg_handle_set_base_uri (RsvgHandle * handle, const char *base_uri); void rsvg_handle_get_dimensions (RsvgHandle * handle, RsvgDimensionData * dimension_data); -int rsvg_handle_get_dimensions_sub (RsvgHandle * handle, RsvgDimensionData * dimension_data, const char *id); -int rsvg_handle_get_position_sub (RsvgHandle * handle, RsvgPositionData * position_data, const char *id); +gboolean rsvg_handle_get_geometry_for_layer(RsvgHandle *handle, + const char *id, + const RsvgRectangle *viewport, + RsvgRectangle *out_ink_rect, + RsvgRectangle *out_logical_rect, + GError **error); int rsvg_handle_has_sub (RsvgHandle * handle, const char *id);