diff options
author | Havoc Pennington <hp@redhat.com> | 2001-02-13 16:59:56 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-02-13 16:59:56 +0000 |
commit | 0bca108a0ab7e081dc57640af3fbf9870749e7b8 (patch) | |
tree | be95bdd126e650769eab20fa33aed71c0a7011cc /pango/pango-layout.h | |
parent | 80d53b6380d64d3bc2c13c6d2fcfe924d45c3d93 (diff) | |
download | pango-0bca108a0ab7e081dc57640af3fbf9870749e7b8.tar.gz |
properly update the tail of the list (pango_attr_list_change): flip order
2001-02-12 Havoc Pennington <hp@redhat.com>
* pango/pango-attributes.c (pango_attr_list_insert_internal):
properly update the tail of the list
(pango_attr_list_change): flip order of tmp_list2 =
tmp_list2->next and prev2 = tmp_list2 to avoid setting
prev2 and tmp_list2 to the same value thus creating a
mangled list.
* pango/pango-layout.c (pango_layout_xy_to_index): When returning
FALSE, set the index/trailing to the nearest location, instead
of setting them to 0.
(pango_layout_line_x_to_index): Fix a bug where line->start_index
wasn't used. Return boolean for whether we had to clamp the
value to get an index.
Diffstat (limited to 'pango/pango-layout.h')
-rw-r--r-- | pango/pango-layout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-layout.h b/pango/pango-layout.h index b20e95a2..76bef0e8 100644 --- a/pango/pango-layout.h +++ b/pango/pango-layout.h @@ -168,7 +168,7 @@ GSList * pango_layout_get_lines (PangoLayout *layout); void pango_layout_line_ref (PangoLayoutLine *line); void pango_layout_line_unref (PangoLayoutLine *line); -void pango_layout_line_x_to_index (PangoLayoutLine *line, +gboolean pango_layout_line_x_to_index (PangoLayoutLine *line, int x_pos, int *index, int *trailing); |