[libchamplain] Use (transfer none) annotation when NULL parameter is allowed
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Use (transfer none) annotation when NULL parameter is allowed
- Date: Sat, 1 Jan 2011 17:32:45 +0000 (UTC)
commit 82783e7179c2857dafb03f0a58d432fe38f9322c
Author: JiÅ?Ã Techet <techet gmail com>
Date: Sat Jan 1 18:31:27 2011 +0100
Use (transfer none) annotation when NULL parameter is allowed
Thanks to Patrick Salecker
champlain/champlain-marker.c | 8 ++++----
champlain/champlain-polygon.c | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/champlain/champlain-marker.c b/champlain/champlain-marker.c
index 80f56f2..e9444f7 100644
--- a/champlain/champlain-marker.c
+++ b/champlain/champlain-marker.c
@@ -1032,7 +1032,7 @@ champlain_marker_set_text (ChamplainMarker *marker,
/**
* champlain_marker_set_image:
* @marker: The marker.
- * @image: The image as a @ClutterActor or NULL to remove the current image.
+ * @image: (allow-none): The image as a @ClutterActor or NULL to remove the current image.
*
* Sets the marker's image.
*
@@ -1107,7 +1107,7 @@ champlain_marker_set_alignment (ChamplainMarker *marker,
/**
* champlain_marker_set_color:
* @marker: The marker
- * @color: The marker's background color or NULL to reset the background to the
+ * @color: (allow-none): The marker's background color or NULL to reset the background to the
* default color. The color parameter is copied.
*
* Set the marker's background color.
@@ -1137,7 +1137,7 @@ champlain_marker_set_color (ChamplainMarker *marker,
/**
* champlain_marker_set_text_color:
* @marker: The marker
- * @color: The marker's text color or NULL to reset the text to the default
+ * @color: (allow-none): The marker's text color or NULL to reset the text to the default
* color. The color parameter is copied.
*
* Set the marker's text color.
@@ -1167,7 +1167,7 @@ champlain_marker_set_text_color (ChamplainMarker *marker,
/**
* champlain_marker_set_font_name:
* @marker: The marker
- * @font_name: The marker's font name or NULL to reset the font to the default
+ * @font_name: (allow-none): The marker's font name or NULL to reset the font to the default
* value.
*
* Set the marker's font name such as "Sans 12".
diff --git a/champlain/champlain-polygon.c b/champlain/champlain-polygon.c
index ef420d8..faef33a 100644
--- a/champlain/champlain-polygon.c
+++ b/champlain/champlain-polygon.c
@@ -492,7 +492,7 @@ champlain_polygon_get_points (ChamplainPolygon *polygon)
/**
* champlain_polygon_set_fill_color:
* @polygon: The polygon
- * @color: The polygon's fill color or NULL to reset to the
+ * @color: (allow-none): The polygon's fill color or NULL to reset to the
* default color. The color parameter is copied.
*
* Set the polygon's fill color.
@@ -521,7 +521,7 @@ champlain_polygon_set_fill_color (ChamplainPolygon *polygon,
/**
* champlain_polygon_set_stroke_color:
* @polygon: The polygon
- * @color: The polygon's stroke color or NULL to reset to the
+ * @color: (allow-none): The polygon's stroke color or NULL to reset to the
* default color. The color parameter is copied.
*
* Set the polygon's stroke color.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]