diff options
author | Behdad Esfahbod <behdad@src.gnome.org> | 2007-08-15 00:14:53 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-08-15 00:14:53 +0000 |
commit | b1570d10478acfa24be0ba2ebc2a066557d7452e (patch) | |
tree | 88beb6bb087fbae85c1fbacef15cd00b57f9ba82 /pango/glyphstring.c | |
parent | 7086b56a116f2b01c0bb889e67656d3d2f5e308c (diff) | |
download | pango-b1570d10478acfa24be0ba2ebc2a066557d7452e.tar.gz |
Fix more typos, and use TRUE/FALSE instead of 1/0
svn path=/trunk/; revision=2398
Diffstat (limited to 'pango/glyphstring.c')
-rw-r--r-- | pango/glyphstring.c | 8 |
1 files changed, 4 insertions, 4 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; } } } |