From efda6a235e6c80a32330ecb9b376822e29a76c93 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 19 Feb 2015 22:02:58 -0500 Subject: [PATCH] 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! --- table_darwin.go | 6 +----- 1 file changed, 1 insertion(+), 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