[goocanvas/introspection: 7/8] Introspection: add missing annotations
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goocanvas/introspection: 7/8] Introspection: add missing annotations
- Date: Thu, 19 May 2011 03:41:10 +0000 (UTC)
commit 4d5ccdd6bb1b6478c393475559596245debf86d1
Author: John Stowers <john stowers gmail com>
Date: Thu May 19 15:34:13 2011 +1200
Introspection: add missing annotations
src/goocanvaspath.c | 8 ++++----
src/goocanvasrect.c | 4 ++--
src/goocanvasutils.c | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/goocanvaspath.c b/src/goocanvaspath.c
index 0254a66..65f5ab0 100644
--- a/src/goocanvaspath.c
+++ b/src/goocanvaspath.c
@@ -113,7 +113,7 @@ goo_canvas_path_init (GooCanvasPath *path)
/**
* goo_canvas_path_new:
- * @parent: the parent item, or %NULL. If a parent is specified, it will assume
+ * @parent: (allow-none): the parent item, or %NULL. If a parent is specified, it will assume
* ownership of the item, and the item will automatically be freed when it is
* removed from the parent. Otherwise call g_object_unref() to free it.
* @path_data: the sequence of path commands, specified as a string using the
@@ -156,7 +156,7 @@ goo_canvas_path_init (GooCanvasPath *path)
* NULL);
* </programlisting></informalexample>
*
- * Returns: a new path item.
+ * Returns: (transfer full): a new path item.
**/
GooCanvasItem*
goo_canvas_path_new (GooCanvasItem *parent,
@@ -671,7 +671,7 @@ goo_canvas_path_model_init (GooCanvasPathModel *pmodel)
/**
* goo_canvas_path_model_new:
- * @parent: the parent model, or %NULL. If a parent is specified, it will
+ * @parent: (allow-none): the parent model, or %NULL. If a parent is specified, it will
* assume ownership of the item, and the item will automatically be freed when
* it is removed from the parent. Otherwise call g_object_unref() to free it.
* @path_data: the sequence of path commands, specified as a string using the
@@ -714,7 +714,7 @@ goo_canvas_path_model_init (GooCanvasPathModel *pmodel)
* NULL);
* </programlisting></informalexample>
*
- * Returns: a new path model.
+ * Returns: (transfer full): a new path model.
**/
GooCanvasItemModel*
goo_canvas_path_model_new (GooCanvasItemModel *parent,
diff --git a/src/goocanvasrect.c b/src/goocanvasrect.c
index 0af1021..f8851ab 100644
--- a/src/goocanvasrect.c
+++ b/src/goocanvasrect.c
@@ -110,7 +110,7 @@ goo_canvas_rect_init (GooCanvasRect *rect)
/**
* goo_canvas_rect_new:
- * @parent: the parent item, or %NULL. If a parent is specified, it will assume
+ * @parent: (allow-none): the parent item, or %NULL. If a parent is specified, it will assume
* ownership of the item, and the item will automatically be freed when it is
* removed from the parent. Otherwise call g_object_unref() to free it.
* @x: the x coordinate of the left of the rectangle.
@@ -134,7 +134,7 @@ goo_canvas_rect_init (GooCanvasRect *rect)
* NULL);
* </programlisting></informalexample>
*
- * Returns: a new rectangle item.
+ * Returns: (transfer full): a new rectangle item.
**/
GooCanvasItem*
goo_canvas_rect_new (GooCanvasItem *parent,
diff --git a/src/goocanvasutils.c b/src/goocanvasutils.c
index ca07559..1618bc7 100644
--- a/src/goocanvasutils.c
+++ b/src/goocanvasutils.c
@@ -559,7 +559,7 @@ parse_flag (gchar **pos,
*
* Parses the given SVG path specification string.
*
- * Returns: a #GArray of #GooCanvasPathCommand elements.
+ * Returns: (element-type GooCanvasPathCommand) (transfer full): a #GArray of #GooCanvasPathCommand elements.
**/
GArray*
goo_canvas_parse_path_data (const gchar *path_data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]