diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-02 23:36:46 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-02 23:36:46 -0500 |
| commit | 463b34791179a6a5063565c56bfa56d794e1f7e1 (patch) | |
| tree | 1fe48f4072715b3043b7fcfd2cdf1a666bc477e5 /sysdata_darwin.go | |
| parent | 0baf0f4a974c2b968f83056c1b6df6a9ba21b1ae (diff) | |
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...
Diffstat (limited to 'sysdata_darwin.go')
| -rw-r--r-- | sysdata_darwin.go | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go index 65c935f..4625c44 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -403,13 +403,21 @@ if classTypes[s.ctype].selIndex == nil { return -1 } } func (s *sysData) selectedIndices() []int { - // TODO - return nil + ret := make(chan []int) + defer close(ret) + uitask <- func() { + ret <- classTypes[s.ctype].selIndices(s.id) + } + return <-ret } func (s *sysData) selectedTexts() []string { - // TODO - return nil + ret := make(chan []string) + defer close(ret) + uitask <- func() { + ret <- classTypes[s.ctype].selTexts(s.id) + } + return <-ret } func (s *sysData) setWindowSize(width int, height int) error { |
