summaryrefslogtreecommitdiff
path: root/combobox.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-12 21:49:41 -0400
committerPietro Gagliardi <[email protected]>2014-04-12 21:49:41 -0400
commit274fa0c2928e3d1573a83d2f68048963df5e16e4 (patch)
tree43d1062a682bffcbdf54a7910132ef740fffa0c4 /combobox.go
parentb9e5ef8e4b042a3c734fbadac1d45e8302e6296a (diff)
Fixed Comboboxes on Mac OS X having an initial selection. This also lays the groundwork for adding Combobox/Listbox.Select() as a public function...
Diffstat (limited to 'combobox.go')
-rw-r--r--combobox.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/combobox.go b/combobox.go
index ec90dc6..0afc79e 100644
--- a/combobox.go
+++ b/combobox.go
@@ -145,6 +145,8 @@ func (c *Combobox) make(window *sysData) (err error) {
for _, s := range c.initItems {
c.sysData.append(s)
}
+ // some platforms automatically select an item; undo that
+ c.sysData.selectIndex(-1)
c.created = true
return nil
}