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 160000 - Problems with display of selection in labels and text view
Problems with display of selection in labels and text view
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other Linux
: Normal normal
: Small fix
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-11-30 19:19 UTC by Matthias Clasen
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2004-11-30 19:19:49 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).
Comment 1 Matthias Clasen 2004-11-30 20:30:00 UTC
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...
Comment 2 Matthias Clasen 2004-11-30 21:44:27 UTC
	* 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.