summaryrefslogtreecommitdiff
path: root/sysdata_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-09 22:22:02 -0400
committerPietro Gagliardi <[email protected]>2014-06-09 22:22:02 -0400
commitf8d46b6bdb3ae58908bdda0515041e34a7f36b24 (patch)
treea93be7462359f22e7d86ee51834a4708541aff90 /sysdata_unix.go
parentfa4094adeb122ea23cc898da75421230d7b7eda1 (diff)
Implemented Area.RepaintAll() on GTK+.
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
+}