diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-12 21:49:41 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-12 21:49:41 -0400 |
| commit | 274fa0c2928e3d1573a83d2f68048963df5e16e4 (patch) | |
| tree | 43d1062a682bffcbdf54a7910132ef740fffa0c4 /combobox.go | |
| parent | b9e5ef8e4b042a3c734fbadac1d45e8302e6296a (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.go | 2 |
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 } |
