Skip to content

Commit

Permalink
Update for gtk-4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
rhx committed Apr 21, 2024
1 parent 903b0e0 commit 1cd3b3e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 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.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: x86_64-apple-macosx14.0

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

$ swift --version
Swift version 5.9 (swift-5.9-RELEASE)
Swift version 5.10 (swift-5.10-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, 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.
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, 2.78 and 2.80, and gdk/gtk 3.22 and 3.24 as well as 4.0, 4.2, 4.4, 4.6, 4.8, 4.10, 4.12, and 4.14 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
8 changes: 8 additions & 0 deletions Sources/CGdk/gdk_bridging.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ struct _GdkDeviceManager {};
struct _GdkDeviceType {};
struct _GdkDisplay {};
struct _GdkDisplayManager {};
struct _GdkDmabufFormats {};
struct _GdkDmabufTexture {};
struct _GdkDmabufTextureBuilder {};
typedef struct _GdkDmabufTextureBuilder GdkDmabufTextureBuilder;
struct _GdkDmabufTextureBuilderClass {};
typedef struct _GdkDmabufTextureBuilderClass GdkDmabufTextureBuilderClass;
struct _GdkDmabufTextureClass {};
typedef struct _GdkDmabufTextureClass GdkDmabufTextureClass;
struct _GdkDrag {};
struct _GdkDragAction {};
struct _GdkDragContext {};
Expand Down

0 comments on commit 1cd3b3e

Please sign in to comment.