Diamond
Diamond
### Alternative Have a WeakBox structure: ```go type SignalBox coreglib.SignalBox[Main] signalBox := SignalBox{main} s.ConnectOpen(func(signalBox *SignalBox) { // use signalBox }, signalBox) ``` This is guaranteed to work, but it sucks.
Why not use MSYS2?
Oh, interesting. That's a use case that I've never considered, unfortunately.
`externGLibType` actually requires the type to be in `core/glib`! The name "extern" is just a really old name: `core/glib` was referred to as `externGLib` internally before I changed some (but...
Oh, both `core` and `cairo` are completely manually written so they're not generated. `ExtraGoContents` is only used for generated packages, not manually written ones. Once you add the code to...
It looks like not at the moment. gotk4 doesn't do subclassing yet. See https://github.com/diamondburned/gotk4/issues/22.
> now I need to do `value.(interface{}).(string)` to get my string, because string does not implement this interface This is really weird and probably doesn't work as well as you...
Yes, though this is one of those scenarios where it's extremely important to defer to the official GTK API documentation: According to [Gtk.FileChooser.get_files](https://docs.gtk.org/gtk4/method.FileChooser.get_files.html), the type of each object in the...
> From what I can see, `glib.Objector` is never returned from any method, or taken as parameter (except in the `new()` funcs). > The same goes for e.g. `gio.ListModeller`. That's...
Hmm, in an ideal world, I think we'll generate a `type ListModel[T Objector] struct`, but I'm not sure how feasible that actually is. I think maybe making it all return...