[pango] Fixed annotation typo and added (allow-none) to pango_layout_index_to_line_x



commit f02381600e245c9c5721d6b4d5e98e3f067282d5
Author: Alberto Ruiz <aruiz gnome org>
Date:   Mon Apr 25 23:47:55 2011 +0100

    Fixed annotation typo and added (allow-none) to pango_layout_index_to_line_x

 pango/pango-layout.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index e13f6e5..d173a16 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -1598,10 +1598,10 @@ pango_layout_index_to_line_and_extents (PangoLayout     *layout,
  * @trailing:  an integer indicating the edge of the grapheme to retrieve the
  *             position of. If 0, the trailing edge of the grapheme, if > 0,
  *             the leading of the grapheme.
- * @line: (out): location to store resulting line index. (which will
- *               between 0 and pango_layout_get_line_count(layout) - 1)
- * @x_pos (out): location to store resulting position within line
- *              (%PANGO_SCALE units per device unit)
+ * @line: (out) (allow-none): location to store resulting line index. (which will
+ *               between 0 and pango_layout_get_line_count(layout) - 1), or %NULL
+ * @x_pos: (out) (allow-none): location to store resulting position within line
+ *              (%PANGO_SCALE units per device unit), or %NULL
  *
  * Converts from byte @index_ within the @layout to line and X position.
  * (X position is measured from the left edge of the line)



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