summaryrefslogtreecommitdiff
path: root/listbox.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-12 22:05:34 -0400
committerPietro Gagliardi <[email protected]>2014-04-12 22:05:34 -0400
commitd4c79539af8b33f41c070773c6bc5e5cbf867543 (patch)
tree43a7eb1de1892a58774752bc56cd10b63050b405 /listbox.go
parent274fa0c2928e3d1573a83d2f68048963df5e16e4 (diff)
Fixed Listboxes on Mac OS X having an initial selection.
Diffstat (limited to 'listbox.go')
-rw-r--r--listbox.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/listbox.go b/listbox.go
index 92067c0..7c11f78 100644
--- a/listbox.go
+++ b/listbox.go
@@ -148,6 +148,8 @@ func (l *Listbox) make(window *sysData) (err error) {
for _, s := range l.initItems {
l.sysData.append(s)
}
+ // some platforms automatically select an item; undo that
+ l.sysData.selectIndices(nil)
l.created = true
return nil
}