Diamond

Results 394 comments of Diamond

I'm not sure; I'm not very familiar with the Builder API. Perhaps you'd want to grab each object and attach a signal to them manually? There is an internal mechanism...

gotk4 doesn't have the right code to create custom objects that implement GLib interfaces yet, so that won't work. GLib interfaces are horribly painful to implement without the caked-up C...

I'm reposting this comment that I accidentally made on `gotk3/gotk3`, thinking it's `gotk4`: > This seems valid. If you ever want to PR this directly into the library, you can...

You can see [how gtkutil does it](https://pkg.go.dev/github.com/diamondburned/gotkit/gtkutil#BindPopoverMenu), as a reference.

> The builder automatically finds the function in the main code. Is your code supposed to do this? There's no way the C library can dig for unexported Go functions...

As I said above: > There's no way the C library can dig for unexported Go functions to magically be called.

This seems simple enough to be PR'd into [gotk4-examples](https://github.com/diamondburned/gotk4-examples). Someone else has already PR'd in a demo project for Cambalache.

Also, as a side note, since this repository contains no examples, it's best to open issues related to them in the other repository.

This may have to do with the garbage collector. Further stack traces show GC workers.