From f8d46b6bdb3ae58908bdda0515041e34a7f36b24 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 9 Jun 2014 22:22:02 -0400 Subject: Implemented Area.RepaintAll() on GTK+. --- sysdata_unix.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sysdata_unix.go') 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 +} -- cgit v1.2.3