From d4c79539af8b33f41c070773c6bc5e5cbf867543 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 12 Apr 2014 22:05:34 -0400 Subject: Fixed Listboxes on Mac OS X having an initial selection. --- listbox.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'listbox.go') 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 } -- cgit v1.2.3