[goocanvas] added (allow-none) annotations for a few functions
- From: Damon Chaplin <damon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goocanvas] added (allow-none) annotations for a few functions
- Date: Thu, 15 Dec 2016 21:04:22 +0000 (UTC)
commit 9bf4ed171f7e6ed63f61d99298b14fe5548eb5be
Author: Damon Chaplin <Damon A Chaplin gmail com>
Date: Thu Dec 15 21:00:30 2016 +0000
added (allow-none) annotations for a few functions
ChangeLog | 7 +++++++
src/goocanvas.c | 10 +++++-----
src/goocanvastext.c | 4 ++--
3 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7f30d6d..d042e78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2016-12-15 Damon Chaplin <damon gnome org>
+ * src/goocanvastext.c (goo_canvas_text_get_natural_extents):
+ * src/goocanvas.c (goo_canvas_render):
+ * src/goocanvas.c (goo_canvas_get_bounds): added (allow-none)
+ annotations for introspection.
+
+2016-12-15 Damon Chaplin <damon gnome org>
+
* src/goocanvas.c (goo_canvas_get_bounds): patch from Simon Feltman
to add (out) annotations for introspection. #732197
diff --git a/src/goocanvas.c b/src/goocanvas.c
index 48846a2..e3232d2 100644
--- a/src/goocanvas.c
+++ b/src/goocanvas.c
@@ -2221,10 +2221,10 @@ set_item_pointer (GooCanvasItem **item,
/**
* goo_canvas_get_bounds:
* @canvas: a #GooCanvas.
- * @left: (out): a pointer to a #gdouble to return the left edge, or %NULL.
- * @top: (out): a pointer to a #gdouble to return the top edge, or %NULL.
- * @right: (out): a pointer to a #gdouble to return the right edge, or %NULL.
- * @bottom: (out): a pointer to a #gdouble to return the bottom edge, or %NULL.
+ * @left: (out) (allow-none): a pointer to a #gdouble to return the left edge, or %NULL.
+ * @top: (out) (allow-none): a pointer to a #gdouble to return the top edge, or %NULL.
+ * @right: (out) (allow-none): a pointer to a #gdouble to return the right edge, or %NULL.
+ * @bottom: (out) (allow-none): a pointer to a #gdouble to return the bottom edge, or %NULL.
*
* Gets the bounds of the canvas, in canvas units.
*
@@ -2871,7 +2871,7 @@ goo_canvas_draw (GtkWidget *widget,
* goo_canvas_render:
* @canvas: a #GooCanvas.
* @cr: a cairo context.
- * @bounds: the area to render, or %NULL to render the entire canvas.
+ * @bounds (allow-none): the area to render, or %NULL to render the entire canvas.
* @scale: the scale to compare with each item's visibility
* threshold to see if they should be rendered. This only affects items that
* have their visibility set to %GOO_CANVAS_ITEM_VISIBLE_ABOVE_THRESHOLD.
diff --git a/src/goocanvastext.c b/src/goocanvastext.c
index f9efa4b..d0d3da4 100644
--- a/src/goocanvastext.c
+++ b/src/goocanvastext.c
@@ -835,8 +835,8 @@ goo_canvas_text_get_requested_area_for_width (GooCanvasItem *item,
/**
* goo_canvas_text_get_natural_extents:
* @text: a #GooCanvasText.
- * @ink_rect: (out): the location to return the ink rect, or %NULL.
- * @logical_rect: (out): the location to return the logical rect, or %NULL.
+ * @ink_rect: (out) (allow-none): the location to return the ink rect, or %NULL.
+ * @logical_rect: (out) (allow-none): the location to return the logical rect, or %NULL.
*
* Gets the natural extents of the text, in the text item's coordinate space.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]