From b1570d10478acfa24be0ba2ebc2a066557d7452e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 15 Aug 2007 00:14:53 +0000 Subject: Fix more typos, and use TRUE/FALSE instead of 1/0 svn path=/trunk/; revision=2398 --- pango/glyphstring.c | 8 ++++---- pango/pango-layout.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pango/glyphstring.c b/pango/glyphstring.c index 17f49331..2e1300d6 100644 --- a/pango/glyphstring.c +++ b/pango/glyphstring.c @@ -497,7 +497,7 @@ pango_glyph_string_index_to_x (PangoGlyphString *glyphs, * @analysis: the analysis information return from pango_itemize() * @x_pos: the x offset (in #PangoGlyphUnit) * @index_: location to store calculated byte index within @text - * @trailing: location to store a integer indicating where + * @trailing: location to store a boolean indicating * whether the user clicked on the leading or trailing * edge of the character. * @@ -607,7 +607,7 @@ pango_glyph_string_x_to_index (PangoGlyphString *glyphs, if (index) *index = start_index; if (trailing) - *trailing = 0; + *trailing = FALSE; } else { @@ -635,7 +635,7 @@ pango_glyph_string_x_to_index (PangoGlyphString *glyphs, } if (trailing) - *trailing = (cp - (int)cp >= 0.5) ? 1 : 0; + *trailing = (cp - (int)cp >= 0.5) ? TRUE : FALSE; } else /* Right-to-left */ { @@ -656,7 +656,7 @@ pango_glyph_string_x_to_index (PangoGlyphString *glyphs, if (trailing) { double cp_flip = cluster_chars - cp; - *trailing = (cp_flip - (int)cp_flip >= 0.5) ? 0 : 1; + *trailing = (cp_flip - (int)cp_flip >= 0.5) ? FALSE : TRUE; } } } diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 02e27db3..858ec3d6 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -3824,7 +3824,7 @@ pango_layout_line_get_type (void) * from the left edge of the line. * @index_: location to store calculated byte index for * the grapheme in which the user clicked. - * @trailing: location to store a integer indicating where + * @trailing: location to store an integer indicating where * in the grapheme the user clicked. It will either * be zero, or the number of characters in the * grapheme. 0 represents the trailing edge of the grapheme. -- cgit v1.2.1