Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FocusCellOwnerDrawHighlighter doesn't remove the complete selection information #1878

Open
Christopher-Hermann opened this issue May 8, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Christopher-Hermann
Copy link
Contributor

Steps to reproduce

From a fresh installation and clean workspace:
This is a follow up to #1689

Steps to reproduce

A small line with the selection color can be seen in the first cell, see screenshot:
Bildschirmfoto 2024-05-08 um 15 21 43

Here is some input on the issue

private void removeSelectionInformation(Event event, ViewerCell cell) {
GC gc = event.gc;
if (Util.isGtk()) {
// On GTK, the line is highlighted even though the SELECTED flag is removed. To
// fix this issue, the background must be overwridden
gc.setBackground(cell.getViewerRow().getBackground(cell.getColumnIndex()));
gc.fillRectangle(cell.getBounds());
}
gc.setForeground(cell.getViewerRow().getForeground(cell.getColumnIndex()));
event.detail &= ~SWT.SELECTED;
}

The FocusCellOwnerDrawHighlighter removes the selection information of the selected line so that only the selected cell is highlighted. Somehow not the complete selected area is removed.

Community

  • [/] I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.
@fedejeanne
Copy link
Contributor

@Christopher-Hermann thank you for reporting it!

I assigned this issue to you as requested in #1690 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants