commit | 20eb8739f47fe7e097d2711c91719c4e8998495a | [log] [tgz] |
---|---|---|
author | Eric Williams <ericwill@redhat.com> | Tue Aug 20 16:42:41 2019 -0400 |
committer | Eric Williams <ericwill@redhat.com> | Fri Aug 23 10:39:18 2019 -0400 |
tree | cf548676a3ff80a2fc4e2a7e37bf5524d3f34f99 | |
parent | fe3b656ad96552704397c5c8dc397797c73c91a1 [diff] |
Bug 546914: [GTK] Git Reflog - branch symbol on the upper right corner does not react Adding a control to a ToolItem via setControl() has a bug on GTK3 (all versions) where events sent to that control are no longer processed/fired. This is because SWT-GTK3 requires a few extra steps, namely fixing the Z-order (GdkWindow stacking order) after calling setControl(). Events in GTK3 travel via GdkWindow, so the wrong GdkWindow on top will block events from reaching the set control. This is visible in EGit and not SWT (Snippet58) because of the way ToolBar managers in JFace dynamically dispose/create ToolItems on the fly. The fix is call fixZOrder() in the parent ToolBar, everytime ToolItem.setControl() is called. Furthermore, the map signal needs to be connected on the ToolItem's topHandle(). Tested on GTK3.24, X11 and Wayland. Verified in a child Eclipse using EGit. No AllNonBrowser JUnit tests fail. Change-Id: I5bc5df8feda7482aa4180ee18d4d995c6942d463 Signed-off-by: Eric Williams <ericwill@redhat.com>
Thanks for your interest in this project.
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.
Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).
Contact the project developers via the project's “dev” list.
This project uses Bugzilla to track ongoing development and issues.
Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!