[librsvg: 5/15] Fix deprecation docs for RsvgPositionData and rsvg_handle_get_position_sub




commit 75f746c0038099760b77acbf63323dce332f627c
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Jun 23 19:45:28 2021 -0500

    Fix deprecation docs for RsvgPositionData and rsvg_handle_get_position_sub
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/585>

 include/librsvg/rsvg.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/include/librsvg/rsvg.h b/include/librsvg/rsvg.h
index 91c0a25c..4fd19ce4 100644
--- a/include/librsvg/rsvg.h
+++ b/include/librsvg/rsvg.h
@@ -435,7 +435,7 @@ struct _RsvgDimensionData {
  * Position of an SVG fragment from rsvg_handle_get_position_sub().  Please
  * the deprecation documentation for that function.
  *
- * Deprecated: 2.46.  FIXME: point to deprecation documentation.
+ * Deprecated: 2.46.  Use rsvg_handle_get_geometry_for_layer() instead.
  */
 struct _RsvgPositionData {
     int x;
@@ -760,7 +760,9 @@ gboolean rsvg_handle_get_dimensions_sub (RsvgHandle        *handle,
  * "##foo" (hash <literal>foo</literal>) to get the geometry of the element that
  * has an <literal>id="foo"</literal> attribute.
  *
- * Deprecated: 2.46.  Use rsvg_handle_get_geometry_for_layer() instead.
+ * Deprecated: 2.46.  Use rsvg_handle_get_geometry_for_layer() instead.  This function is
+ * deprecated since it is not able to return exact floating-point positions, only integer
+ * pixels.
  *
  * Since: 2.22
  */


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