summaryrefslogtreecommitdiff
path: root/window.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 /window.go
parentd13e398e903219ec622293e18384fa2a0207768a (diff)
Implemented the new events in the portable code.
Diffstat (limited to 'window.go')
-rw-r--r--window.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/window.go b/window.go
index a1c7532..63f03b8 100644
--- a/window.go
+++ b/window.go
@@ -98,6 +98,10 @@ func (w *Window) Create(control Control) {
panic("window already open")
}
w.sysData.spaced = w.spaced
+ w.sysData.winhandler = w.handler
+ w.sysData.close = func(b *bool) {
+ w.sysData.winhandler.Event(Closing, b)
+ }
err := w.sysData.make(nil)
if err != nil {
panic(fmt.Errorf("error opening window: %v", err))