Bug 564809 - [GTK4] Adapt to GdkEvent API changes

Multiple functions have been renamed and their signatures changed.
Converted them accordingly and placed platform filter checks. Grouped
the gdk event functions together in GDK.java for readability and so it
will be easier to remove GTK3 function in the future.

Functions changed:
gdk_event_get_button -> gdk_button_event_get_button
gdk_event_get_crossing_mode -> gdk_crossing_event_get_mode
gdk_event_get_focus_in -> gdk_focus_event_get_in
gdk_event_get_keycode -> gdk_key_event_get_keycode
gdk_event_get_keyval -> gdk_key_event_get_keyval
gdk_event_get_scroll_deltas -> gdk_scroll_event_get_deltas
gdk_event_get_scroll_direction -> gdk_scroll_event_get_direction
gdk_event_get_state -> gdk_event_get_modifier_state

gdk_key_event_get_layout to replace gdk_event_get_key_group
gdk_keyval_name to replace getting the string directly from GtkKeyEvent

Change-Id: If461539f1301d5008be3c8f843b9326c3c8b0800
Signed-off-by: Paul D'Pong <sdamrong@redhat.com>
29 files changed
tree: 108f3f94755ebfe79566851b52a443032cc7e709
  1. .gitignore
  5. README.md
  6. bundles/
  7. container/
  8. examples/
  9. features/
  10. local-build/
  11. pom.xml
  12. 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!