GNOME Bugzilla – Bug 160000
Problems with display of selection in labels and text view
Last modified: 2004-12-22 21:47:04 UTC
After the PangoRenderer merge, there are some problems with the drawing of selectios in labels and text view. In text view, when I select a line by double clicking, the end of the last line (it the \n) is included in the selection. I don't think we did single-line selection like that before the merge. In multi-line selectable labels, if I double click on a word to select it, the entire first line is drawn with the background color (even if the word is on a later line).
Owen actually fixed the label problem earlier today. The text view problem is not new, but is a bug, which should have a simple fix, probably just a > vs >= issue somewhere. Moving off the 2.6 mustfix list...
* gtk/gtktextdisplay.c (render_para): Don't paint in the trailing end of a wrapped line when the selection starts after the line. (#160000, Matthias Clasen) * gtk/gtktextdisplay.c (gtk_text_layout_draw): pass in byte_count + 1 for selection_end index when the selection end is past the end of the line so that render_para() can distinguish it from selection-end *at* the end of the line. Fixes newlines not being selected.