Bug 515035 - [Wayland] DnD on text causes null pointer exception

Fixed issue that causes a null pointer exception called on GTKText (SWT
Text) widget. Reasoning behind the changes is that in GTK3.14 there was
a change to how GTK handles DnD automatically for GTKText, causing drag
detection from SWT to fight over GTK. In the case that GTK were to win
the DnD, SWT was not signaled about that event, thus causing a null
pointer when the target item is copied/moved as the target item was
never instantiated.

From my investigation, the Text field was broken way before my patch,
and seem to have been caused by GTK3.14 unnoticed.

Change-Id: I23d102d49c97f9c8b138d355cd01ee49f3cfc19a
Signed-off-by: Ian Pun <ipun@redhat.com>
3 files changed
tree: c984e893f62b92f007e33a1734d4679dfbf1bd7c
  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!