summaryrefslogtreecommitdiff
path: root/sysdata_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-29 04:41:07 -0400
committerPietro Gagliardi <[email protected]>2014-05-29 04:41:07 -0400
commit4045d50f946431408896a7b1512397c905e4bdb5 (patch)
tree06598618cccc9b0b680016b41c6648f19db32f4c /sysdata_darwin.go
parent4baa9397e6546e78e07b24bb8bbab785417e0378 (diff)
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.
Diffstat (limited to 'sysdata_darwin.go')
-rw-r--r--sysdata_darwin.go14
1 files changed, 0 insertions, 14 deletions
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
-}