summaryrefslogtreecommitdiff
path: root/table_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'table_darwin.go')
-rw-r--r--table_darwin.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/table_darwin.go b/table_darwin.go
index 904600d..9caf0fe 100644
--- a/table_darwin.go
+++ b/table_darwin.go
@@ -14,20 +14,20 @@ import "C"
type table struct {
*tablebase
- _id C.id
- scroller *scroller
+ _id C.id
+ scroller *scroller
- images []C.id
- selected *event
+ images []C.id
+ selected *event
}
func finishNewTable(b *tablebase, ty reflect.Type) Table {
id := C.newTable()
t := &table{
- _id: id,
- scroller: newScroller(id, true), // border on Table
- tablebase: b,
- selected: newEvent(),
+ _id: id,
+ scroller: newScroller(id, true), // border on Table
+ tablebase: b,
+ selected: newEvent(),
}
// also sets the delegate
C.tableMakeDataSource(t._id, unsafe.Pointer(t))
@@ -43,7 +43,7 @@ func finishNewTable(b *tablebase, ty reflect.Type) Table {
editable = true
}
C.tableAppendColumn(t._id, C.intptr_t(i), cname, C.int(coltype), toBOOL(editable))
- C.free(unsafe.Pointer(cname)) // free now (not deferred) to conserve memory
+ C.free(unsafe.Pointer(cname)) // free now (not deferred) to conserve memory
}
return t
}