From fa4094adeb122ea23cc898da75421230d7b7eda1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 9 Jun 2014 22:11:08 -0400 Subject: Added Area.RepaintAll() (requested by aybabtme on the Gopher Academy Slack) and implemented it on Mac OS X. --- sysdata_darwin.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sysdata_darwin.go') diff --git a/sysdata_darwin.go b/sysdata_darwin.go index 72a5519..d0e9b16 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -402,3 +402,13 @@ func (s *sysData) setAreaSize(width int, height int) { } <-ret } + +func (s *sysData) repaintAll() { + ret := make(chan struct{}) + defer close(ret) + uitask <- func() { + C.display(s.id) + ret <- struct{}{} + } + <-ret +} -- cgit v1.2.3