Diamond

Results 394 comments of Diamond

Commit b27ae8a35 should fix the generator to work with this. It should just generate now.

> `../pkg/gst/gstbin.go:332:20: undefined: coreglib.GoPrivateFromObject` This is a weird error. I can't find an instance of `GoPrivateFromObject` anywhere. Are you perhaps on a different branch or an old commit?

> `2023/04/03 20:18:37 error verifying generation: unexpected file/folder "gst"` You'll also have to add `"gst"` into `PkgGenerated` as well.

> And a few errors in the generated code, and also a few errors in the existing code: I'm not sure why your IDE is reporting these as errors. They...

Interesting. Is this a recursive type definition? Maybe add more logging there.

Can you paste the relevant XML section(s) for these functions?

Hmm, maybe the C function definition in the code is wrong. It happens sometimes. Maybe try using [`ModifyCallable`](https://github.com/diamondburned/gotk4/blob/4/gir/cmd/gir-generate/gendata/gendata.go#L183)?

I'm thinking either the code generator is not capable (yet?) of properly handing `uintptr` generation, In that case, you might want to look at `./gir/girgen/types/typeconv/go-c.go:498`. You can also change the...

Sorry, I've not been working on this until now. Could you try commit 541c72d3244ea548925d7419778d1fc78fbdb4d6?

### Alternative An interesting alternative would be to make objects floating/weak by default. Users who want to revive a GObject later on must manually sink the reference with `.Sink()` or...