summaryrefslogtreecommitdiff
path: root/sysdata_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-10 11:06:07 -0400
committerPietro Gagliardi <[email protected]>2014-03-10 11:06:07 -0400
commit699f786cd5360ce851a0542c218f0d9cb919d608 (patch)
treeeab56ce0a7e1f052d6932995e750b6c97e121b37 /sysdata_darwin.go
parenta68bdec2fd8a23230ed12348c3801d349b19dea2 (diff)
Fixed compiler errors in the previous few commits.
Diffstat (limited to 'sysdata_darwin.go')
-rw-r--r--sysdata_darwin.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go
index be17825..32b94c3 100644
--- a/sysdata_darwin.go
+++ b/sysdata_darwin.go
@@ -306,10 +306,7 @@ func (s *sysData) make(initText string, window *sysData) error {
ret <- ct.make(parentWindow, s.alternate)
}
s.id = <-ret
- err := s.setText(initText)
- if err != nil {
- return fmt.Errorf("error setting initial text of new window/control: %v", err)
- }
+ s.setText(initText)
addSysData(s.id, s)
return nil
}
@@ -344,7 +341,7 @@ func (s *sysData) setText(text string) {
var zeroSel C.SEL
if classTypes[s.ctype].settextsel == zeroSel { // does not have concept of text
- return nil
+ return
}
ret := make(chan struct{})
defer close(ret)