From 69b63dbbb8762ba53f260959a753f83cf35ccf47 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 8 Apr 2014 00:21:12 -0400 Subject: Slowed GTK+ indeterminate Progressbars down. --- sysdata_unix.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdata_unix.go') diff --git a/sysdata_unix.go b/sysdata_unix.go index 50b51cd..8e61a4f 100644 --- a/sysdata_unix.go +++ b/sysdata_unix.go @@ -296,8 +296,8 @@ func (s *sysData) progressPulse() { var ticker *time.Ticker var tickchan <-chan time.Time - // the default on Windows - const pulseRate = 30 * time.Millisecond + // the pulse rate used by Zenity (https://git.gnome.org/browse/zenity/tree/src/progress.c#n69 for blob cbffe08e8337ba1375a0ac7210eff5a2e4313bb8) + const pulseRate = 100 * time.Millisecond for { select { @@ -305,7 +305,7 @@ func (s *sysData) progressPulse() { if start { ticker = time.NewTicker(pulseRate) tickchan = ticker.C - pulse() // start the pulse animation now, not 30ms later + pulse() // start the pulse animation now, not 100ms later } else { if ticker != nil { ticker.Stop() -- cgit v1.2.3