[gtk/bilelmoussaoui/gdk-pango-length] gdk: add length annotation to pango functions




commit 58cdaf02a523ddce79b2216af26f077acb36d4c7
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Sun May 23 09:40:08 2021 +0000

    gdk: add length annotation to pango functions

 gdk/gdkpango.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c
index 1bf972b0ff..0eb76d6a51 100644
--- a/gdk/gdkpango.c
+++ b/gdk/gdkpango.c
@@ -93,7 +93,7 @@ layout_iter_get_line_clip_region (PangoLayoutIter *iter,
  * @line: a `PangoLayoutLine`
  * @x_origin: X pixel where you intend to draw the layout line with this clip
  * @y_origin: baseline pixel where you intend to draw the layout line with this clip
- * @index_ranges: (array): array of byte indexes into the layout, where even
+ * @index_ranges: (array length=n_ranges): array of byte indexes into the layout, where even
  *   members of array are start indexes and odd elements are end indexes
  * @n_ranges: number of ranges in @index_ranges, i.e. half the size of @index_ranges
  *
@@ -144,7 +144,7 @@ gdk_pango_layout_line_get_clip_region (PangoLayoutLine *line,
  * @layout: a `PangoLayout`
  * @x_origin: X pixel where you intend to draw the layout with this clip
  * @y_origin: Y pixel where you intend to draw the layout with this clip
- * @index_ranges: array of byte indexes into the layout, where even members of array are start indexes and 
odd elements are end indexes
+ * @index_ranges: (array length=n_ranges): array of byte indexes into the layout, where even members of 
array are start indexes and odd elements are end indexes
  * @n_ranges: number of ranges in @index_ranges, i.e. half the size of @index_ranges
  *
  * Obtains a clip region which contains the areas where the given ranges


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