Add any scrolling offset to the x value when in single line mode.
Now that the offset is taken into account in the position_to_coords
function, we do not need to adjust the cursor x manually in
clutter_text_paint.
if (line_height)
*line_height = CLUTTER_UNITS_FROM_PANGO_UNIT (rect.height);
+ if (self->priv->single_line_mode)
+ {
+ /* Take any offset due to scrolling into account */
+ if (x)
+ *x += self->priv->text_x;
+ }
+
+
+
/* FIXME: should return false if coords were outside text */
return TRUE;
}
{
text_x = TEXT_PADDING;
}
- priv->cursor_pos.x += text_x;
}
else
text_x = 0;