Skip to content

Commit

Permalink
Make this work with gtk-4.12
Browse files Browse the repository at this point in the history
  • Loading branch information
rhx committed Oct 4, 2023
1 parent 3a1ce27 commit b3f906e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ Version 15 of gir2swift provides a Package Manager Plugin. This requires Swift
To build, download Swift from https://swift.org/download/ -- if you are using macOS, make sure you have the command line tools installed as well). Test that your compiler works using `swift --version`, which should give you something like

$ swift --version
swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
Target: x86_64-apple-macosx12.0
swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
Target: x86_64-apple-macosx14.0

on macOS, or on Linux you should get something like:

$ swift --version
Swift version 5.7.3 (swift-5.7.3-RELEASE)
Swift version 5.9 (swift-5.9-RELEASE)
Target: x86_64-unknown-linux-gnu

### Gtk 3.22 or higher

The Swift wrappers have been tested with glib-2.56, 2.58, 2.60, 2.62, 2.64, 2.66, 2.68, 2.70 and 2.72, and gdk/gtk 3.22 and 3.24 as well as 4.0, 4.2, 4.4, 4.6, 4.8, and 4.10 on the gtk4 branch. They should work with higher versions, but YMMV. Also make sure you have `gobject-introspection` and its `.gir` files installed.
The Swift wrappers have been tested with glib-2.56, 2.58, 2.60, 2.62, 2.64, 2.66, 2.68, 2.70, 2.72, 2.74, 2.76 and 2.78, and gdk/gtk 3.22 and 3.24 as well as 4.0, 4.2, 4.4, 4.6, 4.8, 4.10, and 4.12 on the gtk4 branch. They should work with higher versions, but YMMV. Also make sure you have `gobject-introspection` and its `.gir` files installed.

#### Linux

Expand Down
3 changes: 3 additions & 0 deletions Sources/CGdk/gdk_bridging.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ struct _GdkDragContext {};
struct _GdkDragProtocol {};
struct _GdkDragSurface {};
struct _GdkDragSurfaceInterface {};
struct _GdkDragSurfaceSize {};
struct _GdkDrawContext {};
struct _GdkDrop {};
struct _GdkEvent {};
Expand All @@ -45,6 +46,8 @@ struct _GdkFullscreenMode {};
struct _GdkGLContext {};
struct _GdkGLError {};
struct _GdkGLTexture {};
struct _GdkGLTextureBuilder {};
struct _GdkGLTextureBuilderClass {};
struct _GdkGLTextureClass {};
struct _GdkGrabBrokenEvent {};
struct _GdkGrabOwnership {};
Expand Down

0 comments on commit b3f906e

Please sign in to comment.