| Summary: | Link widget shows IBeam cursor | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> | ||||||||
| Component: | SWT | Assignee: | Silenio Quarti <Silenio_Quarti> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | minor | ||||||||||
| Priority: | P3 | CC: | daniel_megert, eclipse.felipe, skovatch | ||||||||
| Version: | 3.7 | Flags: | eclipse.felipe:
review+
|
||||||||
| Target Milestone: | 3.7 RC1 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Mac OS X | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Markus Keller
This is happening because we used NSTextView, which will always set the i-beam cursor if the cursor is not over text. You can designate a cursor to use when the text is over the link or over any of the text, but if it's not the cursor can't be overridden. We also have a two-pixel gutter around the link so it looks like a Label. The only way we can really fix this is to rewrite Link. The Carbon version of Link wasn't that bad, but it had the wrong colors for the link and disabled text. I'm attaching a new version of Link that uses a TextLayout instead of NSTextView, but we should think about whether or not we want to use it. I can't find any problems at the moment. Created attachment 187350 [details]
New version of Link
Adding Felipe since he owns Link. You can just drop this in and run it. Target for 3.7 since it looks bad. Created attachment 194386 [details]
Small test case.
Created attachment 194387 [details]
fix
This patch fixes the problem without changing the whole Link implementation. I am not sure the new implementation was fixing something else, but this is not the time for this kind of change.
Fixed > 20110502 Verified in I20110519-1138. |