[pango/introspection-fixes: 2/7] Ensure arguments name match the documentation



commit 006f2e2e2a85d351eee217a74a0ad2dda35dc062
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Aug 2 10:55:49 2019 +0100

    Ensure arguments name match the documentation
    
    Otherwise the introspection scanner will be majorly confused.

 pango/break.c            | 4 ++--
 pango/pango-attributes.c | 2 +-
 pango/pango-break.h      | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/pango/break.c b/pango/break.c
index 14986c78..9fa1c47b 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1745,9 +1745,9 @@ pango_find_paragraph_boundary (const gchar *text,
  * @analysis:  #PangoAnalysis structure from pango_itemize() for @text
  * @offset: Byte offset of @text from the beginning of the
  *     paragraph, or -1 to ignore attributes from @analysis
- * @log_attrs: (array length=attrs_len): array with one #PangoLogAttr
+ * @log_attrs: (array length=log_attrs_len): array with one #PangoLogAttr
  *   per character in @text, plus one extra, to be filled in
- * @attrs_len: length of @log_attrs array
+ * @log_attrs_len: length of @log_attrs array
  *
  * Apply language-specific tailoring to the breaks in
  * @log_attrs, which are assumed to have been produced
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 9acd6cf8..b5e0f77c 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1208,7 +1208,7 @@ pango_attr_allow_breaks_new (gboolean allow_breaks)
 
 /**
  * pango_attr_show_new:
- * @show: #PangoShowFlags to apply
+ * @flags: #PangoShowFlags to apply
  *
  * Create a new attribute that influences how invisible
  * characters are rendered.
diff --git a/pango/pango-break.h b/pango/pango-break.h
index 19698db1..9209ee15 100644
--- a/pango/pango-break.h
+++ b/pango/pango-break.h
@@ -138,8 +138,8 @@ void pango_tailor_break  (const char    *text,
                           int            length,
                          PangoAnalysis *analysis,
                           int            offset,
-                         PangoLogAttr  *attrs,
-                         int            attrs_len);
+                         PangoLogAttr  *log_attrs,
+                         int            log_attrs_len);
 
 G_END_DECLS
 


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