diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-10 11:06:07 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-10 11:06:07 -0400 |
| commit | 699f786cd5360ce851a0542c218f0d9cb919d608 (patch) | |
| tree | eab56ce0a7e1f052d6932995e750b6c97e121b37 /sysdata_unix.go | |
| parent | a68bdec2fd8a23230ed12348c3801d349b19dea2 (diff) | |
Fixed compiler errors in the previous few commits.
Diffstat (limited to 'sysdata_unix.go')
| -rw-r--r-- | sysdata_unix.go | 9 |
1 files changed, 3 insertions, 6 deletions
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) |
