[librsvg] (#409) - Fix introspection annotations for rsvg_handle_get_geometry_sub()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] (#409) - Fix introspection annotations for rsvg_handle_get_geometry_sub()
- Date: Thu, 31 Jan 2019 15:30:24 +0000 (UTC)
commit 4066fce932b122250d41198939c83ece76001eb0
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Jan 31 09:28:21 2019 -0600
(#409) - Fix introspection annotations for rsvg_handle_get_geometry_sub()
Optional out parameters need to be (out)(allow-none), like in
pango_layout_get_extents().
Fixes https://gitlab.gnome.org/GNOME/librsvg/issues/409
librsvg/rsvg-handle.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/librsvg/rsvg-handle.c b/librsvg/rsvg-handle.c
index d1d785ff..fa03f6b6 100644
--- a/librsvg/rsvg-handle.c
+++ b/librsvg/rsvg-handle.c
@@ -1041,8 +1041,8 @@ rsvg_handle_get_dimensions_sub (RsvgHandle *handle,
/**
* rsvg_handle_get_geometry_sub:
* @handle: A #RsvgHandle
- * @ink_rect: (out)(nullable): A place to store the SVG fragment's geometry.
- * @logical_rect: (out)(nullable): A place to store the SVG fragment's logical geometry.
+ * @ink_rect: (out)(allow-none): A place to store the SVG fragment's geometry.
+ * @logical_rect: (out)(allow-none): A place to store the SVG fragment's logical geometry.
* @id: (nullable): An element's id within the SVG, starting with "##", for
* example, "##layer1"; or %NULL to use the whole SVG.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]