Bug 530969: [GTK3] Control.print() doesn't seem to work

In GTK3, gtk_widget_draw() relies on the priv->alloc_needed flag to be
set to TRUE. This is an internal flag in a private struct so we cannot
access it. The fix is to the get the topHandle's allocation, and simply
re-set it. This triggers an allocation change without actually changing
the size of the widget.

Tested on GTK3.8+. No JUnit test failures.

Change-Id: I81df53bfceaa988a2cce574ef7629c64c0ec6fb9
Signed-off-by: Eric Williams <ericwill@redhat.com>
2 files changed
tree: ab8ebe38b030ba41e5dc5e72b54b8080ef381410
  1. .gitignore
  2. README.md
  3. bundles/
  4. examples/
  5. features/
  6. local-build/
  7. pom.xml
  8. tests/

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 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!