Diamond

Results 394 comments of Diamond

These behaviors are only true if `TASK_TEMP_DIR` is actually set. If not, `.task` is not automatically created, and the env var is empty when evaluated. I think the issue was...

> The document seems very clear about this behavior. {{.NAME |...}} refers to VAR and it will only grab environment variable as a last resort; if no env is set...

This likely needs improvements, but `init()`s behave weirdly. I'm not sure how to allow this; maybe I should move this to outside `init()`. I'm not sure where though, maybe `gtk_init()`?

Right, it should work. However, there are other ways to initialize GTK without calling Go's `gtk.Init()` function, e.g. by doing `gtk.NewApplication` or by calling `adw.Init()`.

That could work, but `init()`'s ordering is pretty much undefined. It would be hacky to inject a logger beforehand, but it could look something like: ```go var _ = glib.DontInjectLogger()...

> And then putting the function that sets the default logger at the starz of every method that allows starting the gtk application This is hard if not impossible to...

I think `SelectedItem()` returning `*Object` or `Objector` is correct. I'm not sure why there's no `gtk.StringObject` though?

If you want to try and find out, you can do `GIR_VERBOSE=1 go generate |& /tmp/gir.out` and `grep 'StringObject' /tmp/gir.out`.

It's needed because package [`core/intern`](https://github.com/diamondburned/gotk4/tree/4/pkg/core/intern) requires some `uintptr` hacks to replicate weak references, which was needed to prevent certain memory leaks from occuring. This assumes that the GC doesn't move...

You can't create an object like that. gotk4 unfortunately doesn't support subclassing. You could try to use [gioutil.ListModel[T]](https://pkg.go.dev/github.com/diamondburned/gotk4/pkg/core/gioutil#ListModel).