Bug 570331 - [GTK] Combo can't be interacted with after .setRedraw(false) + .setRedraw(true)

This patch fixes multiple problems at once:
1) Combo.setRedraw(false) + Combo.setRedraw(true) made it non-responsive
2) Combo.redraw() didn't work
3) GC based on Combo covered wrong part of Control

The problem was that SWT searched for a Combo's subwindow, which GTK
creates with GDK_INPUT_ONLY (that is, not suitable for any painting),
and actually tried to use it for painting.

It was probably an oversight from the very beginning, resulting from a
series of workarounds where SWT tried to separate windows used for
different APIs.

See also Bug 561444 and its commit message.

Change-Id: I24400d175f31898723bb1cdc6313934d3903bf2c
Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
2 files changed
tree: b716b5ce3715cc5f54d6db484507688dae881345
  1. bundles/
  2. container/
  3. examples/
  4. features/
  5. local-build/
  6. tests/
  7. .gitignore
  8. CONTRIBUTING
  9. LICENSE
  10. NOTICE
  11. pom.xml
  12. 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!