Skip to content

gi-gio: AsyncReadyCallback gained an unwanted argument from 2.0.30 to 2.0.32 #405

@maralorn

Description

@maralorn

Note the difference between

https://hackage.haskell.org/package/gi-gio-2.0.30/docs/GI-Gio-Callbacks.html#t:AsyncReadyCallback

type AsyncReadyCallback = Maybe Object -> AsyncResult  -> IO ()

and

https://hackage.haskell.org/package/gi-gio-2.0.32/docs/GI-Gio-Callbacks.html#t:AsyncReadyCallback

type AsyncReadyCallback = Maybe Object -> AsyncResult -> Ptr () -> IO ()

I encountered this because it breaks jsaddle-webkit2gtk ghcjs/jsaddle#137.

According to #381 (comment) you don’t intend that Ptr () argument to be exposed.

We suspect https://gitlab.gnome.org/GNOME/glib/commit/fc70f2c057f3f28d35233b756ec786103d4e769f is the reason that the code generation fails. Apparently rust has similar problems with their bindings: gtk-rs/gir#1428

Thanks to @jtojnar for helping me debug this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions