Implemented Area.RepaintAll() on GTK+.

This commit is contained in:
Pietro Gagliardi 2014-06-09 22:22:02 -04:00
parent fa4094adeb
commit f8d46b6bdb
1 changed files with 11 additions and 0 deletions

View File

@ -367,3 +367,14 @@ func (s *sysData) setAreaSize(width int, height int) {
}
<-ret
}
func (s *sysData) repaintAll() {
ret := make(chan struct{})
defer close(ret)
uitask <- func() {
c := gtkAreaGetControl(s.widget)
C.gtk_widget_queue_draw(c)
ret <- struct{}{}
}
<-ret
}