GNOME Bugzilla – Bug 721012
GtkTextView: add API to highlight a line with a background color
Last modified: 2014-07-31 14:19:21 UTC
GtkSourceView has a hacky implementation for highlighting the current line. And with the port of GtkTextView to the pixel cache, there were some problems. The paragraph-background GtkTextTag property can not be used to highlight an empty line at the end of the buffer, and this can not be easily changed (see bug #313718). So it would be nice to have an API in GtkTextView to have a clean implementation for the current line highlighting.
Note that drawing a line background color is also used by GtkSourceMark, see the GtkSourceMarkAttributes:background property.
would be great to see an api proposal and patch for this
No longer needed, there is now the GtkTextView::draw_layer virtual function.