Skip to content

v0.1.0

Compare
Choose a tag to compare
@pekim pekim released this 07 Nov 08:53
· 8 commits to master since this release
  • 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. 0eec544

    For 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.