summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-02-15 11:05:27 +0000
committerMatthias Clasen <mclasen@redhat.com>2017-04-08 00:57:28 -0400
commit9ab6ddd41723e0f0f8f0d57ca6bb37763c910d3c (patch)
tree0cf94ef0fb12f0ac23ff9fd01e6eaece5993fbda
parent6f0648043fe2a084db15a6cdded8402625676aef (diff)
downloadpango-9ab6ddd41723e0f0f8f0d57ca6bb37763c910d3c.tar.gz
docs: Add a few missing (transfer) annotations
This should fix a few scanner warnings, but this is not an attempt to fix them all. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=778663
-rw-r--r--pango/fonts.c2
-rw-r--r--pango/pangoft2-fontmap.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/pango/fonts.c b/pango/fonts.c
index 723b7f7b..da1940f2 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -1549,7 +1549,7 @@ pango_font_get_coverage (PangoFont *font,
* Finds the best matching shaper for a font for a particular
* language tag and character point.
*
- * Return value: the best matching shaper.
+ * Return value: (transfer none): the best matching shaper.
**/
PangoEngineShape *
pango_font_find_shaper (PangoFont *font,
diff --git a/pango/pangoft2-fontmap.c b/pango/pangoft2-fontmap.c
index 38be00d0..617def07 100644
--- a/pango/pangoft2-fontmap.c
+++ b/pango/pangoft2-fontmap.c
@@ -253,7 +253,8 @@ pango_ft2_font_map_set_resolution (PangoFT2FontMap *fontmap,
*
* Create a #PangoContext for the given fontmap.
*
- * Return value: the newly created context; free with g_object_unref().
+ * Return value: (transfer full): the newly created context; free with
+ * g_object_unref().
*
* Since: 1.2
*
@@ -276,7 +277,7 @@ pango_ft2_font_map_create_context (PangoFT2FontMap *fontmap)
* (see pango_ft2_font_map_for_display()) and sets the resolution
* for the default fontmap to @dpi_x by @dpi_y.
*
- * Return value: the new #PangoContext
+ * Return value: (transfer full): the new #PangoContext
*
* Deprecated: 1.22: Use pango_font_map_create_context() instead.
**/
@@ -302,7 +303,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
* global PangoFT2 fontmap is deprecated; use pango_ft2_font_map_new()
* instead.
*
- * Return value: a #PangoFT2FontMap.
+ * Return value: (transfer none): a #PangoFT2FontMap.
**/
PangoFontMap *
pango_ft2_font_map_for_display (void)