[pango] docs: Add a few missing (transfer) annotations



commit 9ab6ddd41723e0f0f8f0d57ca6bb37763c910d3c
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Feb 15 11:05:27 2017 +0000

    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

 pango/fonts.c            |    2 +-
 pango/pangoft2-fontmap.c |    7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/pango/fonts.c b/pango/fonts.c
index 723b7f7..da1940f 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 38be00d..617def0 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)


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