[libchamplain] Add some more annotations



commit 7a7bc6ed9a581d40f3518b39aaf58e60a4b27022
Author: JiÅ?í Techet <techet gmail com>
Date:   Sat Jan 8 00:46:14 2011 +0100

    Add some more annotations

 champlain/champlain-file-cache.c         |    2 +-
 champlain/champlain-map-source-factory.c |    2 +-
 champlain/champlain-polygon.c            |    2 +-
 champlain/champlain-selection-layer.c    |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/champlain/champlain-file-cache.c b/champlain/champlain-file-cache.c
index 125cba7..f9223f0 100644
--- a/champlain/champlain-file-cache.c
+++ b/champlain/champlain-file-cache.c
@@ -371,7 +371,7 @@ champlain_file_cache_init (ChamplainFileCache *file_cache)
 /**
  * champlain_file_cache_new_full:
  * @size_limit: maximal size of the cache in bytes
- * @cache_dir: the directory where the cache is created. When cache_dir == NULL,
+ * @cache_dir: (allow-none): the directory where the cache is created. When cache_dir == NULL,
  * a cache in ~/.cache/champlain is used.
  * @renderer: the #ChamplainRenderer used for tiles rendering
  *
diff --git a/champlain/champlain-map-source-factory.c b/champlain/champlain-map-source-factory.c
index 6aed3ae..3bc0b0c 100644
--- a/champlain/champlain-map-source-factory.c
+++ b/champlain/champlain-map-source-factory.c
@@ -337,7 +337,7 @@ champlain_map_source_factory_dup_default (void)
  *
  * Get the list of registered map sources.
  *
- * Returns: (transfer container): the list of registered map sources, the items should not be freed,
+ * Returns: (transfer container) (element-type ChamplainMapSourceDesc): the list of registered map sources, the items should not be freed,
  * the list should be freed with #g_slist_free.
  *
  * Since: 0.4
diff --git a/champlain/champlain-polygon.c b/champlain/champlain-polygon.c
index faef33a..5504be3 100644
--- a/champlain/champlain-polygon.c
+++ b/champlain/champlain-polygon.c
@@ -476,7 +476,7 @@ champlain_polygon_clear_points (ChamplainPolygon *polygon)
  *
  * Gets a list of polygon points.
  *
- * Returns: (transfer none): a list of all points from the polygon, it shouldn't be freed.
+ * Returns: (transfer none) (element-type ChamplainPoint): a list of all points from the polygon, it shouldn't be freed.
  *
  * Since: 0.4
  */
diff --git a/champlain/champlain-selection-layer.c b/champlain/champlain-selection-layer.c
index b4d9531..a4f6e58 100644
--- a/champlain/champlain-selection-layer.c
+++ b/champlain/champlain-selection-layer.c
@@ -325,7 +325,7 @@ champlain_selection_layer_get_selected (ChamplainSelectionLayer *layer)
  *
  * Gets the list of selected markers.
  *
- * Returns: the list of selected #ChamplainBaseMarker or NULL if none is selected.
+ * Returns: (transfer none) (element-type ChamplainBaseMarker): the list of selected #ChamplainBaseMarker or NULL if none is selected.
  * You shouldn't free that list.
  *
  * Since: 0.4



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