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