Whoops, forgot to define sysData.selectedIndices() and sysData.selectedTexts() for Mac OS X now that I have those written! Adding items is still a no-op...

This commit is contained in:
Pietro Gagliardi 2014-03-02 23:36:46 -05:00
parent 0baf0f4a97
commit 463b347911
1 changed files with 12 additions and 4 deletions

View File

@ -403,13 +403,21 @@ if classTypes[s.ctype].selIndex == nil { return -1 }
} }
func (s *sysData) selectedIndices() []int { func (s *sysData) selectedIndices() []int {
// TODO ret := make(chan []int)
return nil defer close(ret)
uitask <- func() {
ret <- classTypes[s.ctype].selIndices(s.id)
}
return <-ret
} }
func (s *sysData) selectedTexts() []string { func (s *sysData) selectedTexts() []string {
// TODO ret := make(chan []string)
return nil defer close(ret)
uitask <- func() {
ret <- classTypes[s.ctype].selTexts(s.id)
}
return <-ret
} }
func (s *sysData) setWindowSize(width int, height int) error { func (s *sysData) setWindowSize(width int, height int) error {