From 699f786cd5360ce851a0542c218f0d9cb919d608 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 10 Mar 2014 11:06:07 -0400 Subject: Fixed compiler errors in the previous few commits. --- sysdata_unix.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sysdata_unix.go') diff --git a/sysdata_unix.go b/sysdata_unix.go index 38e589c..a910df7 100644 --- a/sysdata_unix.go +++ b/sysdata_unix.go @@ -4,7 +4,7 @@ package ui import ( - "fmt" + // ... ) type sysData struct { @@ -150,10 +150,7 @@ func (s *sysData) make(initText string, window *sysData) error { } <-ret } - err := s.setText(initText) - if err != nil { - return fmt.Errorf("error setting initial text of new window/control: %v", err) - } + s.setText(initText) return nil } @@ -185,7 +182,7 @@ func (s *sysData) hide() { func (s *sysData) setText(text string) { if classTypes[s.ctype].setText == nil { // does not have concept of text - return nil + return } ret := make(chan struct{}) defer close(ret) -- cgit v1.2.3