Bug 565064 - [GTK4] Adapt to GdkWindow API changes

GdkWindow has been changed to GdkSurface and creating children directly
is no longer possible but instead broken into toplevel & popups. Many
functions have been removed altogether and still require replacements. I
have added TODOs in place for now as the goal is to compile SWT in GTK4
then move on to making it work.

Added:
gdk_toplevel_focus to replace gdk_surface_focus/gdk_window_focus
gdk_surface_new_toplevel to replace gdk_surface_new_child
gdk_toplevel_present to replace gdk_surface_raise
gdk_toplevel_get_state
gdk_toplevel_lower
gdk_popup_get_parent to replace the need to set/get use surface
user_data

gdk_popup_present
gdk_popup_layout_new

Removed:
gdk_surface_get_frame_extent
gdk_surface_get_children
gdk_surface_get_root_origin
gdk_surface_invalidate_region
gdk_surface_move
gdk_surface_move_resize
gdk_surface_resize
gdk_surface_restack
gdk_surface_set_decorations
gdk_surface_set_functions
gdk_surface_show
gdk_surface_show_unraised

Renamed:
GDK_SURFACE_STATE_ICONIFIED -> GDK_SURFACE_STATE_MINIMIZED

Change-Id: I0ea9fb4b52a4f1e3a8171805e4620b20005f9b8e
Signed-off-by: Paul D'Pong <sdamrong@redhat.com>
18 files changed
tree: fb7bbbd4735702889e7c2a1faefb55853c16c579
  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!