summaryrefslogtreecommitdiff
path: root/sysdata_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'sysdata_unix.go')
-rw-r--r--sysdata_unix.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdata_unix.go b/sysdata_unix.go
index 21ed72c..04a6119 100644
--- a/sysdata_unix.go
+++ b/sysdata_unix.go
@@ -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
+}