[gegl] svg-load: deal with some deprecation
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] svg-load: deal with some deprecation
- Date: Sun, 5 Aug 2012 15:23:50 +0000 (UTC)
commit 36e582a2bd1c451b2a61fa041efb62d740aff2e3
Author: Michael Murà <mure michael gmail com>
Date: Mon Aug 6 00:23:12 2012 +0900
svg-load: deal with some deprecation
operations/external/svg-load.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/operations/external/svg-load.c b/operations/external/svg-load.c
index cfb4142..11b41a6 100644
--- a/operations/external/svg-load.c
+++ b/operations/external/svg-load.c
@@ -74,8 +74,6 @@ gegl_buffer_import_svg (GeglBuffer *gegl_buffer,
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, *ret_width, *ret_height);
cr = cairo_create (surface);
- rsvg_init();
-
/*
FIXME: The routine 'rsvg_pixbuf_from_file_at_size' is deprecated. Set up a
cairo matrix and use rsvg_handle_new_from_file() + rsvg_handle_render_cairo()
@@ -99,8 +97,6 @@ instead.
gegl_buffer_set (gegl_buffer, &rect, 0, babl_format ("R'G'B'A u8"), pixeldata, GEGL_AUTO_ROWSTRIDE);
}
- rsvg_term();
-
cairo_destroy (cr);
cairo_surface_destroy (surface);
@@ -138,7 +134,6 @@ query_svg (const gchar *path,
GError *pError = NULL;
SvgLoadVals vals;
- rsvg_init ();
handle = rsvg_handle_new_from_file (path, &pError);
if (handle == NULL)
return FALSE;
@@ -151,8 +146,7 @@ query_svg (const gchar *path,
rsvg_handle_get_dimensions (handle, &dimension_data);
- rsvg_handle_free (handle);
- rsvg_term ();
+ g_object_unref (handle);
*width = dimension_data.width;
*height = dimension_data.height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]