Rename a variable masking index()

The maintainer CFLAGS found another masking of the index() function
by an helpless variable.
This commit is contained in:
Emmanuele Bassi 2009-01-07 16:26:03 +00:00
parent 805b88d4c0
commit 5d5b93bd2a

View File

@ -826,7 +826,7 @@ cursor_paint (ClutterText *self)
gint n_ranges; gint n_ranges;
gint *ranges; gint *ranges;
gint i; gint i;
gint index; gint index_;
gint maxindex; gint maxindex;
ClutterUnit y, height; ClutterUnit y, height;
@ -838,10 +838,10 @@ cursor_paint (ClutterText *self)
pango_layout_line_get_x_ranges (line, start_index, end_index, pango_layout_line_get_x_ranges (line, start_index, end_index,
&ranges, &ranges,
&n_ranges); &n_ranges);
pango_layout_line_x_to_index (line, 0, &index, NULL); pango_layout_line_x_to_index (line, 0, &index_, NULL);
clutter_text_position_to_coords (self, clutter_text_position_to_coords (self,
bytes_to_offset (utf8, index), bytes_to_offset (utf8, index_),
NULL, &y, &height); NULL, &y, &height);
for (i = 0; i < n_ranges; i++) for (i = 0; i < n_ranges; i++)