v0.1.0
-
Add support for connecting signals defined in a builder definition. 5fa97f1
There is documentation showing how to use this. -
Include the target object (such as
*gtk.Widget
or*gtk.Button
) as the first parameter of signal callback functions. 0eec544For example, this
da := gtk.DrawingAreaNew() da.Widget().ConnectDraw(func(cr *cairo.Context) bool { // draw something in the context ... return false })
becomes
da := gtk.DrawingAreaNew() da.Widget().ConnectDraw(func(widget *gtk.Widget, cr *cairo.Context) bool { // draw something in the context ... return false })
This better matches the C api, and can be convenient when connecting signals in builder defintions.
This is a breaking API change.