[librsvg] Mention which function replaces get_dimensions_sub/get_position_sub



commit fa6ffc69ee05c8c274cf664818edfd2b07fc045e
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Mar 28 10:45:23 2019 -0600

    Mention which function replaces get_dimensions_sub/get_position_sub

 librsvg/rsvg-handle.c | 4 ++--
 librsvg/rsvg.h        | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/librsvg/rsvg-handle.c b/librsvg/rsvg-handle.c
index 7469841c..48e69f20 100644
--- a/librsvg/rsvg-handle.c
+++ b/librsvg/rsvg-handle.c
@@ -801,7 +801,7 @@ rsvg_handle_get_dimensions (RsvgHandle *handle, RsvgDimensionData *dimension_dat
  * 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: 2.46.  FIXME: point to deprecation documentation.
+ * Deprecated: 2.46.  Use rsvg_handle_get_geometry_for_element() instead.
  *
  * Since: 2.22
  */
@@ -826,7 +826,7 @@ rsvg_handle_get_dimensions_sub (RsvgHandle *handle,
  * 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: 2.46.  FIXME: point to deprecation documentation.
+ * Deprecated: 2.46.  Use rsvg_handle_get_geometry_for_element() instead.
  *
  * Since: 2.22
  */
diff --git a/librsvg/rsvg.h b/librsvg/rsvg.h
index 63e31c8b..f5e4252a 100644
--- a/librsvg/rsvg.h
+++ b/librsvg/rsvg.h
@@ -190,12 +190,12 @@ void         rsvg_handle_set_base_uri (RsvgHandle *handle, const char *base_uri)
 
 void rsvg_handle_get_dimensions (RsvgHandle *handle, RsvgDimensionData *dimension_data);
 
-RSVG_DEPRECATED
+RSVG_DEPRECATED_FOR(rsvg_handle_get_geometry_for_element)
 gboolean rsvg_handle_get_dimensions_sub (RsvgHandle        *handle,
                                          RsvgDimensionData *dimension_data,
                                          const char        *id);
 
-RSVG_DEPRECATED
+RSVG_DEPRECATED_FOR(rsvg_handle_get_geometry_for_element)
 gboolean rsvg_handle_get_position_sub (RsvgHandle       *handle,
                                        RsvgPositionData *position_data,
                                        const char       *id);


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