DocumentWorkspace.addWidget

Requests the workspace add widget to the dock at position.

class DocumentWorkspace
bool
addWidget

Parameters

widget panel.widget.Widget

a #PanelWidget

position panel.position.Position

a #PanelPosition or null

Return Value

Type: bool

true if widget was added; otherwise false and widget will have gobject.object.ObjectWrap.refSink called and unref'd from an idle callback.