projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
805b88d
)
Rename a variable masking index()
author
Emmanuele Bassi
<ebassi@linux.intel.com>
Wed, 7 Jan 2009 16:26:03 +0000
(16:26 +0000)
committer
Emmanuele Bassi
<ebassi@linux.intel.com>
Wed, 7 Jan 2009 16:41:17 +0000
(16:41 +0000)
The maintainer CFLAGS found another masking of the index() function
by an helpless variable.
clutter/clutter-text.c
patch
|
blob
|
history
diff --git
a/clutter/clutter-text.c
b/clutter/clutter-text.c
index
9f38003
..
4b7ae3f
100644
(file)
--- a/
clutter/clutter-text.c
+++ b/
clutter/clutter-text.c
@@
-826,7
+826,7
@@
cursor_paint (ClutterText *self)
gint n_ranges;
gint *ranges;
gint i;
- gint index;
+ gint index
_
;
gint maxindex;
ClutterUnit y, height;
@@
-838,10
+838,10
@@
cursor_paint (ClutterText *self)
pango_layout_line_get_x_ranges (line, start_index, end_index,
&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,
- bytes_to_offset (utf8, index),
+ bytes_to_offset (utf8, index
_
),
NULL, &y, &height);
for (i = 0; i < n_ranges; i++)