summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-01-10 20:31:44 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-01-10 20:31:44 +0000
commite5b7a12cfc631932d7ef0fbdb4ee8ed5ed3fd27e (patch)
tree11f17aed52e11ca28bdf2d8fb74a7b8600f034a5
parentb4841f4254130bc32cc6a8942ca1bc7b53a84ac6 (diff)
downloadpango-e5b7a12cfc631932d7ef0fbdb4ee8ed5ed3fd27e.tar.gz
Bug 508179 – PangoGlyphUnit confusion
2008-01-10 Behdad Esfahbod <behdad@gnome.org> Bug 508179 – PangoGlyphUnit confusion * pango/pango-layout.c (process_item): Remove all traces of #PangoGlyphUnit svn path=/branches/pango-1-18/; revision=2541
-rw-r--r--ChangeLog7
-rw-r--r--pango/pango-layout.c18
2 files changed, 16 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index ce68743e..3bf07b41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-10 Behdad Esfahbod <behdad@gnome.org>
+
+ Bug 508179 – PangoGlyphUnit confusion
+
+ * pango/pango-layout.c (process_item): Remove all traces of
+ #PangoGlyphUnit
+
2008-01-08 Behdad Esfahbod <behdad@gnome.org>
Bug 508381 – indent and center alignment don't mix
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 139adf7a..49b5fc74 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -489,7 +489,7 @@ pango_layout_get_indent (PangoLayout *layout)
* @layout: a #PangoLayout.
* @spacing: the amount of spacing
*
- * Sets the amount of spacing in #PangoGlyphUnit between the lines of the
+ * Sets the amount of spacing in Pango units between the lines of the
* layout.
*
**/
@@ -510,7 +510,7 @@ pango_layout_set_spacing (PangoLayout *layout,
* pango_layout_get_spacing:
* @layout: a #PangoLayout
*
- * Gets the amount of spacing in #PangoGlyphUnit between the lines of the
+ * Gets the amount of spacing in Pango units between the lines of the
* layout.
*
* Return value: the spacing.
@@ -1343,7 +1343,7 @@ pango_layout_get_line_readonly (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.
- * @x_pos: location to store the x_offset (in #PangoGlyphUnit)
+ * @x_pos: location to store the x_offset (in Pango units)
*
* Converts an index within a line to a X position.
*
@@ -1730,9 +1730,9 @@ pango_layout_move_cursor_visually (PangoLayout *layout,
/**
* pango_layout_xy_to_index:
* @layout: a #PangoLayout
- * @x: the X offset (in #PangoGlyphUnit)
+ * @x: the X offset (in Pango units)
* from the left edge of the layout.
- * @y: the Y offset (in #PangoGlyphUnit)
+ * @y: the Y offset (in Pango units)
* from the top edge of the layout
* @index_: location to store calculated byte index
* @trailing: location to store a integer indicating where
@@ -2949,7 +2949,7 @@ struct _ParaBreakState
int start_offset; /* Character offset of first item in state->items in layout->text */
PangoGlyphString *glyphs; /* Glyphs for the first item in state->items */
ItemProperties properties; /* Properties for the first item in state->items */
- PangoGlyphUnit *log_widths; /* Logical widths for first item in state->items.. */
+ int *log_widths; /* Logical widths for first item in state->items.. */
int log_widths_offset; /* Offset into log_widths to the point corresponding
* to the remaining portion of the first item */
};
@@ -3146,7 +3146,7 @@ process_item (PangoLayout *layout,
if (processing_new_item)
{
- state->log_widths = g_new (PangoGlyphUnit, item->num_chars);
+ state->log_widths = g_new (int, item->num_chars);
pango_glyph_string_get_logical_widths (state->glyphs,
layout->text + item->offset, item->length, item->analysis.level,
state->log_widths);
@@ -3747,7 +3747,7 @@ pango_layout_line_get_type (void)
/**
* pango_layout_line_x_to_index:
* @line: a #PangoLayoutLine
- * @x_pos: the X offset (in #PangoGlyphUnit)
+ * @x_pos: the X offset (in Pango units)
* from the left edge of the line.
* @index_: location to store calculated byte index for
* the grapheme in which the user clicked.
@@ -3971,7 +3971,7 @@ pango_layout_line_x_to_index (PangoLayoutLine *line,
* with each range starting at <literal>(*ranges)[2*n]</literal>
* and of width <literal>(*ranges)[2*n + 1] - (*ranges)[2*n]</literal>.
* This array must be freed with g_free(). The coordinates are relative
- * to the layout and are in #PangoGlyphUnit.
+ * to the layout and are in Pango units.
* @n_ranges: The number of ranges stored in @ranges.
*
* Gets a list of visual ranges corresponding to a given logical range.