[librsvg: 7/15] Deprecate rsvg_handle_render_cairo*
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 7/15] Deprecate rsvg_handle_render_cairo*
- Date: Tue, 27 Oct 2020 23:36:50 +0000 (UTC)
commit 24b89b4dbea2e284165484c0adc3719ad81cdba9
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Oct 27 13:50:23 2020 -0600
Deprecate rsvg_handle_render_cairo*
Let's see if we can get applications to use the new API gradually and
realize the magic of SVG scalability.
librsvg/rsvg-cairo.h | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/librsvg/rsvg-cairo.h b/librsvg/rsvg-cairo.h
index b8f1ade9..d7c1bbd6 100644
--- a/librsvg/rsvg-cairo.h
+++ b/librsvg/rsvg-cairo.h
@@ -86,8 +86,11 @@ G_BEGIN_DECLS
*
* Returns: %TRUE if drawing succeeded; %FALSE otherwise.
* Since: 2.14
+ *
+ * Deprecated: 2.52. Please use rsvg_handle_render_document() instead; that function lets
+ * you pass a viewport and obtain a good error message.
*/
-RSVG_API
+RSVG_DEPRECATED_FOR(rsvg_handle_render_document)
gboolean rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr);
/**
@@ -154,8 +157,11 @@ gboolean rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr);
*
* Returns: %TRUE if drawing succeeded; %FALSE otherwise.
* Since: 2.14
+ *
+ * Deprecated: 2.52. Please use rsvg_handle_render_layer() instead; that function lets
+ * you pass a viewport and obtain a good error message.
*/
-RSVG_API
+RSVG_DEPRECATED_FOR(rsvg_handle_render_layer)
gboolean rsvg_handle_render_cairo_sub (RsvgHandle *handle, cairo_t *cr, const char *id);
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]