summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@src.gnome.org>2007-08-15 00:14:53 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-08-15 00:14:53 +0000
commitb1570d10478acfa24be0ba2ebc2a066557d7452e (patch)
tree88beb6bb087fbae85c1fbacef15cd00b57f9ba82
parent7086b56a116f2b01c0bb889e67656d3d2f5e308c (diff)
downloadpango-b1570d10478acfa24be0ba2ebc2a066557d7452e.tar.gz
Fix more typos, and use TRUE/FALSE instead of 1/0
svn path=/trunk/; revision=2398
-rw-r--r--pango/glyphstring.c8
-rw-r--r--pango/pango-layout.c2
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.