summaryrefslogtreecommitdiff
path: root/redo/containers_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-28 13:18:03 -0400
committerPietro Gagliardi <[email protected]>2014-07-28 13:18:03 -0400
commit3f124a016ea9d88db3c7b368b836fc296d1475e2 (patch)
tree4a371359f95ce47611931621c01db1a3bdb77ca3 /redo/containers_unix.go
parentd8785297ff5a0165d94b1dc267e54b02b80b1b61 (diff)
Made Tab in the GTK+ backend scrollable (in case there are too many tabs).
Diffstat (limited to 'redo/containers_unix.go')
-rw-r--r--redo/containers_unix.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/redo/containers_unix.go b/redo/containers_unix.go
index 6687994..68dbf08 100644
--- a/redo/containers_unix.go
+++ b/redo/containers_unix.go
@@ -28,6 +28,8 @@ func newTab() Tab {
widgetbase: newWidget(widget),
notebook: (*C.GtkNotebook)(unsafe.Pointer(widget)),
}
+ // there are no scrolling arrows by default; add them in case there are too many tabs
+ C.gtk_notebook_set_scrollable(t.notebook, C.TRUE)
return t
}