Removed error returns from sysData.setText() now that we no longer care.
This commit is contained in:
parent
65663c0533
commit
353c949f64
|
@ -31,7 +31,7 @@ func (c *cSysData) show() {
|
|||
func (c *cSysData) hide() {
|
||||
panic(runtime.GOOS + " sysData does not define hide()")
|
||||
}
|
||||
func (c *cSysData) setText(text string) error {
|
||||
func (c *cSysData) setText(text string) {
|
||||
panic(runtime.GOOS + " sysData does not define setText()")
|
||||
}
|
||||
func (c *cSysData) setRect(x int, y int, width int, height int, winheight int) error {
|
||||
|
|
|
@ -340,7 +340,7 @@ func (s *sysData) hide() {
|
|||
<-ret
|
||||
}
|
||||
|
||||
func (s *sysData) setText(text string) error {
|
||||
func (s *sysData) setText(text string) {
|
||||
var zeroSel C.SEL
|
||||
|
||||
if classTypes[s.ctype].settextsel == zeroSel { // does not have concept of text
|
||||
|
@ -353,7 +353,6 @@ func (s *sysData) setText(text string) error {
|
|||
ret <- struct{}{}
|
||||
}
|
||||
<-ret
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *sysData) setRect(x int, y int, width int, height int, winheight int) error {
|
||||
|
|
|
@ -183,7 +183,7 @@ func (s *sysData) hide() {
|
|||
<-ret
|
||||
}
|
||||
|
||||
func (s *sysData) setText(text string) error {
|
||||
func (s *sysData) setText(text string) {
|
||||
if classTypes[s.ctype].setText == nil { // does not have concept of text
|
||||
return nil
|
||||
}
|
||||
|
@ -194,7 +194,6 @@ func (s *sysData) setText(text string) error {
|
|||
ret <- struct{}{}
|
||||
}
|
||||
<-ret
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *sysData) setRect(x int, y int, width int, height int, winheight int) error {
|
||||
|
|
|
@ -241,7 +241,7 @@ func (s *sysData) hide() {
|
|||
<-ret
|
||||
}
|
||||
|
||||
func (s *sysData) setText(text string) error {
|
||||
func (s *sysData) setText(text string) {
|
||||
ret := make(chan uiret)
|
||||
defer close(ret)
|
||||
uitask <- &uimsg{
|
||||
|
@ -256,7 +256,6 @@ func (s *sysData) setText(text string) error {
|
|||
if r.ret == 0 { // failure
|
||||
panic(fmt.Errorf("error setting window/control text: %v", err))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *sysData) setRect(x int, y int, width int, height int, winheight int) error {
|
||||
|
|
Loading…
Reference in New Issue