Closed BlobCodes closed 2 years ago
I should add that this used to work in an older version of GI-Crystal
I see the issue.... there's no ArgPlan for error parameters, so it's just using the same value without any conversion, like it does for Int32 and other basic types.
I took a look on this, the proper fix isn't soooo simple, because the proper fix need to make the signal parameters arrive as a exception class translated from the GError, not GLib::Error
, in fact GLib::Error
shouldn't exist as a wrapper of GError, but as a base class for all exceptions generated from GError.
i.e. GError
must be tagged as a hand made type on bindings.yml, but the current implementation of handmade type is too open due to GValue implementation, so I need to re-think a bit how to deal with these handmade types.
This code does not compile with the following error message:
The generated code:
GI-Crystal version: 0.12.0 Crystal version: 1.4.1