summaryrefslogtreecommitdiff
path: root/sysdata_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-09 16:02:17 -0400
committerPietro Gagliardi <[email protected]>2014-03-09 16:02:17 -0400
commitb9f0ad90ec3568cbb1a7a2452d51395377c03a99 (patch)
tree8887a96143833845ec479589e903e43c809961ba /sysdata_unix.go
parenta7ec908ebd5e344628717cab874919dfc29cd58c (diff)
Steamrolled errors under panic() in Combobox/Listbox.Append()/InsertBefore() because screw Windows being different.
Diffstat (limited to 'sysdata_unix.go')
-rw-r--r--sysdata_unix.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/sysdata_unix.go b/sysdata_unix.go
index f55e463..c07545a 100644
--- a/sysdata_unix.go
+++ b/sysdata_unix.go
@@ -216,7 +216,7 @@ func (s *sysData) text() string {
return <-ret
}
-func (s *sysData) append(what string) error {
+func (s *sysData) append(what string) {
ret := make(chan struct{})
defer close(ret)
uitask <- func() {
@@ -224,10 +224,9 @@ func (s *sysData) append(what string) error {
ret <- struct{}{}
}
<-ret
- return nil
}
-func (s *sysData) insertBefore(what string, before int) error {
+func (s *sysData) insertBefore(what string, before int) {
ret := make(chan struct{})
defer close(ret)
uitask <- func() {
@@ -235,7 +234,6 @@ func (s *sysData) insertBefore(what string, before int) error {
ret <- struct{}{}
}
<-ret
- return nil
}
func (s *sysData) selectedIndex() int {