After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 721012 - GtkTextView: add API to highlight a line with a background color
GtkTextView: add API to highlight a line with a background color
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 721013
 
 
Reported: 2013-12-24 13:08 UTC by Sébastien Wilmet
Modified: 2014-07-31 14:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2013-12-24 13:08:08 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.
Comment 1 Sébastien Wilmet 2013-12-24 13:14:36 UTC
Note that drawing a line background color is also used by GtkSourceMark, see the GtkSourceMarkAttributes:background property.
Comment 2 Matthias Clasen 2014-01-05 17:01:21 UTC
would be great to see an api proposal and patch for this
Comment 3 Sébastien Wilmet 2014-07-31 14:19:21 UTC
No longer needed, there is now the GtkTextView::draw_layer virtual function.