diff options
| author | Pietro Gagliardi <[email protected]> | 2015-02-19 22:02:58 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-02-19 22:02:58 -0500 |
| commit | efda6a235e6c80a32330ecb9b376822e29a76c93 (patch) | |
| tree | 004c219506f77ce71ad126b04e57783b1c2604af /table_darwin.go | |
| parent | 1d091637d8a958b648fe77dd1ce5a9760737dfc1 (diff) | |
Fixed the new Table without ImageList on Mac OS X. Now all we have left to do is reimplement the selection logic on Windows and we're good to roll!
Diffstat (limited to 'table_darwin.go')
| -rw-r--r-- | table_darwin.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/table_darwin.go b/table_darwin.go index 23482fb..26418b6 100644 --- a/table_darwin.go +++ b/table_darwin.go @@ -60,10 +60,6 @@ func (t *table) Unlock() { }() } -func (t *table) LoadImageList(i ImageList) { - i.apply(&t.images) -} - func (t *table) Selected() int { t.RLock() defer t.RUnlock() @@ -91,7 +87,7 @@ func goTableDataSource_getValue(data unsafe.Pointer, row C.intptr_t, col C.intpt case datum.Type() == reflect.TypeOf((*image.RGBA)(nil)): *outtype = C.colTypeImage d := datum.Interface().(*image.RGBA) - img := C.toTableImage(unsafe.Pointer(pixelData(img)), C.intptr_t(d.Rect.Dx()), C.intptr_t(d.Rect.Dy()), C.intptr_t(d.Stride)) + img := C.toTableImage(unsafe.Pointer(pixelData(d)), C.intptr_t(d.Rect.Dx()), C.intptr_t(d.Rect.Dy()), C.intptr_t(d.Stride)) return unsafe.Pointer(img) case datum.Kind() == reflect.Bool: *outtype = C.colTypeCheckbox |
