pekim / gobbi

gobbi is a set of generated Go bindings for gtk et al.
MIT License
28 stars 3 forks source link

Support connecting signals for a Builder #10

Closed pekim closed 4 years ago

pekim commented 4 years ago

There is no means of connecting signal handler functions to named signals in a builder description. This was initially mentioned in #9.

Use of gtk_builder_connect_signals_full is probably the way to go. gotk3's approach in https://github.com/gotk3/gotk3/pull/9 provides some inspiration.

Unlike gobbi's normally type-safe approach to connecting signal handlers this is probably going to have to connect the handler functions without regard to type-safety.

pekim commented 4 years ago

@sunshine69 I've just open #11 which implements a new api for connecting signals. I'd appreciate it if you could take a look at the documentation and see if the api looks reasonable to you.

I realise from https://github.com/gotk3/gotk3/issues/457 that you're unlikely to use this this functionality, so I understand if you don't want to spend too much time on it.