Made Tab in the GTK+ backend scrollable (in case there are too many tabs).
This commit is contained in:
parent
d8785297ff
commit
3f124a016e
|
@ -28,6 +28,8 @@ func newTab() Tab {
|
||||||
widgetbase: newWidget(widget),
|
widgetbase: newWidget(widget),
|
||||||
notebook: (*C.GtkNotebook)(unsafe.Pointer(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
|
return t
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue