summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-28 01:57:07 -0400
committerPietro Gagliardi <[email protected]>2014-06-28 01:57:07 -0400
commitc8ae74cf2677195106dcd526c8b745a995be9075 (patch)
treee73419b923778852ebf42eea690492dde9cd09c4 /button.go
parentd13e398e903219ec622293e18384fa2a0207768a (diff)
Implemented the new events in the portable code.
Diffstat (limited to 'button.go')
-rw-r--r--button.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/button.go b/button.go
index 2ee3efd..25d0600 100644
--- a/button.go
+++ b/button.go
@@ -36,6 +36,9 @@ func (b *Button) Text() string {
}
func (b *Button) make(window *sysData) error {
+ b.sysData.event = func() {
+ window.winhandler.Event(Clicked, b)
+ }
err := b.sysData.make(window)
if err != nil {
return err