Made Tab in the GTK+ backend scrollable (in case there are too many tabs).

This commit is contained in:
Pietro Gagliardi 2014-07-28 13:18:03 -04:00
parent d8785297ff
commit 3f124a016e
1 changed files with 2 additions and 0 deletions

View File

@ -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
}