Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359869

Summary: cannot see mouse selection in highlighted text in StyledText
Product: [Eclipse Project] Platform Reporter: Grant Gayed <grant_gayed>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: gheorghe, Silenio_Quarti
Version: 3.8   
Target Milestone: 3.8 M3   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Grant Gayed CLA 2011-10-04 12:31:49 EDT
- happens in HEAD, worked fine in 3.7.x
- is apparently caused by the recent Cairo graphics work

- get eclipse to highlight a range of text in a java editor (eg.- do a search, highlight references to something, etc.)
- use the mouse to select some text from within the highlighted range and note that you cannot see the selected range at all (though doing a copy+paste shows that the selection is logically there)
Comment 1 Felipe Heidrich CLA 2011-10-05 09:36:30 EDT
Bog & Silenio, have you changed anything on this area ?
Comment 2 Silenio Quarti CLA 2011-10-05 09:51:38 EDT
The problem is that cairo is ON all the time now if the GTK verion is 2.18 and greater.  This bug is not new. It just would not show up before because StyledText never called setAdvanced(true).