Bug 465280: [GTK3] OS.gtk_widget_get_allocation returns (0,0) for
invisible controls

(BACKPORT TO R4_7)

Fix for issue.
The bugfix was originally started in: 408505 by Anatoly Spektor 
but it looks like there was a handle/tophandle typo made.
Fixing the typo resolves the reported problem.

This also fixes:
497705 – Unhandled event loop > StackOverflow in Perspective
I.e, with this patch, Eclipse on Gtk3 is usable on Ubuntu (yay).

I wrote a few mini-junits. You can validate this patch as following:
- Try running:
Bug497705_setBoundsAfterSetVisible.java
From: https://git.eclipse.org/r/#/c/99981/  (already merged).
- Tests will fail.
- Checkout this patch, run tests again. They pass.

Further, snippet attached to this bug now works as intended.
Child Eclipse behaves fine. Javadoc hover etc... work.

All SWT jUint tests pass.

Change-Id: I11141bf4455e9381b5b26f93940dde1910d909d8
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=465280
Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
1 file changed
tree: 927025f9c0dc40d6ea4e0a97376e6f2e06bb9609
  1. bundles/
  2. examples/
  3. features/
  4. local-build/
  5. tests/
  6. .gitignore
  7. pom.xml
  8. 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!