Bug 540801: [GTK4] Build SWT on GTK4

Add GTK4 variable and make the necessary changes for GTK functions so
that GTK4 builds. What was done:

1) Functions that have been removed completely in GTK4 (with no
replacement) are if-def'd in os.h

2) Those simple functions that have been removed in GTK4 but replaced
with an equivalent, have been made dynamic. This is for cases like
gtk_widget_get_window vs. gtk_widget_get_surface.

3) Some functions were replaced with GTK4 functions that make use of
GTK4-only structs -- in these cases I have if-def'd them in os.h as
making them dynamic still fails compilation with the type casting.
GtkDrag had a bunch of these cases.

Change-Id: Idd060f9dd1dc3aabb0d1deafb2e943cf7bec6b1f
Signed-off-by: Eric Williams <ericwill@redhat.com>
7 files changed
tree: 44fbabb9ec355c2c5687377907de0bf0e2f9e635
  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!