From 4045d50f946431408896a7b1512397c905e4bdb5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 29 May 2014 04:41:07 -0400 Subject: Checked to see if the previous commit worked after removing the leftover Combobox selectIndex() code; it does. Removed the dummy code from the Windows and GTK+ backends as well. --- sysdata_darwin.go | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'sysdata_darwin.go') diff --git a/sysdata_darwin.go b/sysdata_darwin.go index cb9f30b..72a5519 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -31,7 +31,6 @@ type classData struct { selTexts func(id C.id) []string delete func(id C.id, index int) len func(id C.id) int - selectIndex func(id C.id, index int, alternate bool) } func addControl(parentWindow C.id, control C.id) { @@ -135,9 +134,6 @@ var classTypes = [nctypes]*classData{ len: func(id C.id) int { return int(C.comboboxLen(id)) }, - selectIndex: func(id C.id, index int, alternate bool) { - C.comboboxSelectIndex(id, toBOOL(alternate), C.intptr_t(index)) - }, }, c_lineedit: &classData{ make: func(parentWindow C.id, alternate bool, s *sysData) C.id { @@ -406,13 +402,3 @@ func (s *sysData) setAreaSize(width int, height int) { } <-ret } - -func (s *sysData) selectIndex(index int) { - ret := make(chan struct{}) - defer close(ret) - uitask <- func() { - classTypes[s.ctype].selectIndex(s.id, index, s.alternate) - ret <- struct{}{} - } - <-ret -} -- cgit v1.2.3