summaryrefslogtreecommitdiff
path: root/tab.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2018-08-11 23:21:30 -0400
committerPietro Gagliardi <[email protected]>2018-08-11 23:21:30 -0400
commitf0fb0f4f7e36b70c61a6cbcc6a2875946a6beec2 (patch)
tree4f14157da996eec770c12a104708084a1866b555 /tab.go
parentacdea005c009afd23638cc640275166887622bef (diff)
Un-intmax_t'd everything.
Diffstat (limited to 'tab.go')
-rw-r--r--tab.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tab.go b/tab.go
index 6fcaccf..0b0b0b9 100644
--- a/tab.go
+++ b/tab.go
@@ -65,7 +65,7 @@ func (t *Tab) InsertAt(name string, n int, child Control) {
// Delete deletes the nth page of the Tab.
func (t *Tab) Delete(n int) {
t.children = append(t.children[:n], t.children[n + 1:]...)
- C.uiTabDelete(t.t, C.uintmax_t(n))
+ C.uiTabDelete(t.t, C.int(n))
}
// NumPages returns the number of pages in the Tab.
@@ -76,12 +76,12 @@ func (t *Tab) NumPages() int {
// Margined returns whether page n (starting at 0) of the Tab
// has margins around its child.
func (t *Tab) Margined(n int) bool {
- return tobool(C.uiTabMargined(t.t, C.uintmax_t(n)))
+ return tobool(C.uiTabMargined(t.t, C.int(n)))
}
// SetMargined controls whether page n (starting at 0) of the Tab
// has margins around its child. The size of the margins are
// determined by the OS and its best practices.
func (t *Tab) SetMargined(n int, margined bool) {
- C.uiTabSetMargined(t.t, C.uintmax_t(n), frombool(margined))
+ C.uiTabSetMargined(t.t, C.int(n), frombool(margined))
}