diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-18 10:41:58 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-18 10:41:58 -0400 |
| commit | 570f08a49ce1099cee4feed9ae006b3f0545b7a0 (patch) | |
| tree | 73ac420fd2d427473e62e68ad4ac13cf3db1a9a0 /redo/table_darwin.go | |
| parent | a8f711dfad63c5b1949439ac33ab4a162ab90ded (diff) | |
Implemented Table.Selected()/Select() on Mac OS X. Also more TODOs.
Diffstat (limited to 'redo/table_darwin.go')
| -rw-r--r-- | redo/table_darwin.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/redo/table_darwin.go b/redo/table_darwin.go index 1f889c0..bccaf1b 100644 --- a/redo/table_darwin.go +++ b/redo/table_darwin.go @@ -62,6 +62,18 @@ func (t *table) LoadImageList(i ImageList) { i.apply(&t.images) } +func (t *table) Selected() int { + t.RLock() + defer t.RUnlock() + return int(C.tableSelected(t._id)) +} + +func (t *table) Select(index int) { + t.RLock() + defer t.RUnlock() + C.tableSelect(t._id, C.intptr_t(index)) +} + //export goTableDataSource_getValue func goTableDataSource_getValue(data unsafe.Pointer, row C.intptr_t, col C.intptr_t, outtype *C.int) unsafe.Pointer { t := (*table)(data) |
