diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-11 11:17:00 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-11 11:17:00 -0400 |
| commit | 8632d0c2f3c5b9eada161ea8743f995e46c0ff94 (patch) | |
| tree | 6041a0b3d68c443ffd74b627b685d32217d1f158 /sysdata_darwin.go | |
| parent | a7747b95a4fe6d1a76d34e888eef24ad18a27414 (diff) | |
Implemented Window.Center() on Mac OS X.
Diffstat (limited to 'sysdata_darwin.go')
| -rw-r--r-- | sysdata_darwin.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go index 19b2d49..26bcd98 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -412,3 +412,13 @@ func (s *sysData) repaintAll() { } <-ret } + +func (s *sysData) center() { + ret := make(chan struct{}) + defer close(ret) + uitask <- func() { + C.center(s.id) + ret <- struct{}{} + } + <-ret +} |
