Bug 546493: [GTK4] Button click coordinates are incorrect for some cases

This is a two-part fix:

1) Adjust the sendMouseDown() function in Control, as event coordinates
on GTK4 are already parent relative.

2) Table/Tree have headers built into the GtkTreeview's surface, meaning
the y-coordinates will include the height of the header. This throws off
any geometry-item querying code in Table/Tree. The fix is to adjust the
coordinates to account for the size of the header. GTK3 doesn't have
this problem because the header has its own GdkWindow which is separate
from the rest of the Table/Tree.

Tested using Snippet3 on GTK4.

Change-Id: Ia68a6edb376a823dc3beb57e4db084075e42138b
Signed-off-by: Eric Williams <ericwill@redhat.com>
5 files changed
tree: ada5f5f21522a0297e94b09470213f7f3e11c7a5
  1. bundles/
  2. examples/
  3. features/
  4. local-build/
  5. tests/
  6. .gitignore
  7. CONTRIBUTING
  8. LICENSE
  9. NOTICE
  10. pom.xml
  11. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!