| Summary: | [GTK3] incorrect cell editor position in tree caused by PaintItem listener | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Alexander Burdukov <aburdukov> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | P3 | CC: | ericwill, snjezana.peco | ||||
| Version: | 4.7 | Keywords: | triaged | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
I can't actually get the this Snippet to work correctly: all I am seeing is the bug. With/without the PaintListener, the cell editor is in the incorrect place. (In reply to Eric Williams from comment #1) > I can't actually get the this Snippet to work correctly: all I am seeing is > the bug. With/without the PaintListener, the cell editor is in the incorrect > place. For reference, I am on Fedora 22, using GTK3.16, and Eclipse Neon (using the latest SWT master). I can reproduce the issue on Eclipse 4.5.1, but can't on Eclipse 4.6M3 and SWT master. I can still reproduce this bug to a degree. The cell editor appears in the second column but it seems impossible to actually add text. Sometimes the cell editor actually appears in the bottom right corner of the window. Clicking outside the cell editor in the Tree also seems to cause an ArrayOutOfBounds error. I can't reproduce this issue any more, in fact it looks like I couldn't reproduce it already from comment 4. GTK2 and GTK3 have the same behaviour: the table editor pops up at the first row, second column. Marking this one as closed, please re-open if the issue pops up again. |
Created attachment 257597 [details] The code snippet to reproduce the issue Tree cell editor is activated at incorrect column if PaintItem listener is added to a tree. Note, the issue is not reproduced with GTK2 and old GTK3 versions (not reproduced on Ubuntu 14.04.2 LTS with GTK 3.10.8), but reproduced with newest GTK3 versions (e.g., on Ubuntu Ubuntu 15.04 with GTK 3.14.14). Eclipse 4.5 and 4.5.1 are affected. To reproduce: 1. Run attached snippet. 2. Click on the cell at the first row and the second column As the result the cell editor is activated at the first column instead of second one. The problem is not reproduced if the code with addition of SWT.PaintItem listener is commented out.