summaryrefslogtreecommitdiff
path: root/listbox.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-09 16:56:45 -0400
committerPietro Gagliardi <[email protected]>2014-03-09 16:56:45 -0400
commit5a7cfedb84ec964b381406e4fc13e14bc994ba08 (patch)
tree54bb44b94d4829307661b0c68a7da0d92c549f12 /listbox.go
parentb9f0ad90ec3568cbb1a7a2452d51395377c03a99 (diff)
Fixed compiler errors in the previous commit.
Diffstat (limited to 'listbox.go')
-rw-r--r--listbox.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/listbox.go b/listbox.go
index b028bdc..8bd54b1 100644
--- a/listbox.go
+++ b/listbox.go
@@ -34,7 +34,7 @@ func (l *Listbox) Append(what ...string) {
defer l.lock.Unlock()
if l.created {
- for i, s := range what {
+ for _, s := range what {
l.sysData.append(s)
}
return
@@ -126,10 +126,7 @@ func (l *Listbox) make(window *sysData) (err error) {
return err
}
for _, s := range l.initItems {
- err = l.sysData.append(s)
- if err != nil {
- return err
- }
+ l.sysData.append(s)
}
l.created = true
return nil