Skip to content

jsaddle-webkit2gtk: gi-gio 2.0.32 support#137

Merged
hamishmack merged 1 commit intoghcjs:masterfrom
maralorn:fix-webviewrun-callback
May 15, 2023
Merged

jsaddle-webkit2gtk: gi-gio 2.0.32 support#137
hamishmack merged 1 commit intoghcjs:masterfrom
maralorn:fix-webviewrun-callback

Conversation

@maralorn
Copy link
Copy Markdown
Contributor

@maralorn maralorn commented Apr 16, 2023

For reasons unknown to me, the type AsyncReadyCallback from GI.Gio.Callback changed from

Maybe Object -> AsyncResult  -> IO ()

in gi-gio 2.0.30

Maybe Object -> AsyncResult -> Ptr () -> IO ()

in gi-gio 2.0.32, without a mention in the changelog. This came up during the update to webkit 2.40 in nixpkgs.

This patch fixes the build of jsaddle-webkit2gtk and I tested an application built with it.
I hope it’s not our job to somehow free the pointer I am ignoring here, but I don’t think so …

It is worth mentioning that webViewRunJavascript has a deprecation warning since webkit 2.40.
I didn’t invest more effort in replacing that call since I am unclear what’s going to happen with jsaddle and the ghc new javascript backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants