[librsvg: 10/13] deprecate get_postion_sub() and get_dimension_sub()



commit 25d900b47af781bd3d01ece2631cf49ceae4c970
Author: Julian Sparber <julian sparber net>
Date:   Mon Nov 19 12:06:10 2018 +0200

    deprecate get_postion_sub() and get_dimension_sub()

 librsvg/rsvg-handle.c | 7 +++++--
 librsvg/rsvg.h        | 4 ++++
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/librsvg/rsvg-handle.c b/librsvg/rsvg-handle.c
index 833a7a35..a1b245d2 100644
--- a/librsvg/rsvg-handle.c
+++ b/librsvg/rsvg-handle.c
@@ -1243,6 +1243,8 @@ get_node_geometry(RsvgHandle *handle, RsvgNode *node, cairo_rectangle_t *ink_rec
  * Get the size of a subelement of the SVG file. Do not call from within the
  * size_func callback, because an infinite loop will occur.
  *
+ * Deprecated: Use rsvg_handle_get_geometry_sub() instead.
+ *
  * Since: 2.22
  */
 gboolean
@@ -1279,8 +1281,7 @@ rsvg_handle_get_dimensions_sub (RsvgHandle * handle, RsvgDimensionData * dimensi
  * @id: (nullable): An element's id within the SVG, starting with "##", for
  * example, "##layer1"; or %NULL to use the whole SVG.
  *
- * Get the geometry of a subelement of the SVG file. Do not call from within
- * the size_func callback, because an infinite loop will occur.
+ * Get the geometry of a subelement of the SVG file.
  *
  * Note that unlike rsvg_handle_get_position_sub() and
  * rsvg_handle_get_dimensions_sub(), this function does not call the size_func.
@@ -1368,6 +1369,8 @@ out:
  * Get the position of a subelement of the SVG file. Do not call from within
  * the size_func callback, because an infinite loop will occur.
  *
+ * Deprecated: Use rsvg_handle_get_geometry_sub() instead.
+ *
  * Since: 2.22
  */
 gboolean
diff --git a/librsvg/rsvg.h b/librsvg/rsvg.h
index 8c4998eb..880f9c9e 100644
--- a/librsvg/rsvg.h
+++ b/librsvg/rsvg.h
@@ -107,6 +107,8 @@ struct _RsvgHandle {
  * @height: SVG's height, in pixels
  * @em: em
  * @ex: ex
+ *
+ * Deprecated: 2.46
  */
 struct _RsvgDimensionData {
     int width;
@@ -121,6 +123,8 @@ struct _RsvgDimensionData {
  * @y: position on the y axis
  *
  * Position of an SVG fragment.
+ *
+ * Deprecated: 2.46
  */
 struct _RsvgPositionData {
     int x;


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