summaryrefslogtreecommitdiff
path: root/combobox.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 /combobox.go
parentb9f0ad90ec3568cbb1a7a2452d51395377c03a99 (diff)
Fixed compiler errors in the previous commit.
Diffstat (limited to 'combobox.go')
-rw-r--r--combobox.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/combobox.go b/combobox.go
index 54403b1..d42b353 100644
--- a/combobox.go
+++ b/combobox.go
@@ -42,7 +42,7 @@ func (c *Combobox) Append(what ...string) {
defer c.lock.Unlock()
if c.created {
- for i, s := range what {
+ for _, s := range what {
c.sysData.append(s)
}
return
@@ -141,10 +141,7 @@ func (c *Combobox) make(window *sysData) (err error) {
return err
}
for _, s := range c.initItems {
- err = c.sysData.append(s)
- if err != nil {
- return err
- }
+ c.sysData.append(s)
}
c.created = true
return nil