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 6e53227 commit 5c30d56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ After that, use the (usual) Build and Test buttons to build/test this package.
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: arm64-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, 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, 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
5 changes: 5 additions & 0 deletions Sources/CGtk/gtk_bridging.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ struct _GtkAccelGroupPrivate {};
struct _GtkAccelLabelPrivate {};
struct _GtkAccelMap {};
struct _GtkAccelMapClass {};
struct _GtkAccessibleList {};
struct _GtkAccessiblePrivate {};
struct _GtkAccessibleText {};
struct _GtkActionBarPrivate {};
struct _GtkActionGroupPrivate {};
struct _GtkActionPrivate {};
Expand Down Expand Up @@ -123,6 +125,7 @@ struct _GtkGestureStylusClass {};
struct _GtkGestureZoom {};
struct _GtkGestureZoomClass {};
struct _GtkGradient {};
struct _GtkGraphicsOffload {};
struct _GtkGridPrivate {};
struct _GtkHSVPrivate {};
struct _GtkHandleBoxPrivate {};
Expand Down Expand Up @@ -191,10 +194,12 @@ struct _GtkPopoverMenu {};
struct _GtkPopoverPrivate {};
struct _GtkPrintBackend {};
struct _GtkPrintContext {};
struct _GtkPrintDialog {};
struct _GtkPrintJob {};
struct _GtkPrintOperationPreview {};
struct _GtkPrintOperationPrivate {};
struct _GtkPrintSettings {};
struct _GtkPrintSetup {};
struct _GtkPrintUnixDialog {};
struct _GtkPrinter {};
struct _GtkProgressBarAccessiblePrivate {};
Expand Down

0 comments on commit 5c30d56

Please sign in to comment.