DocumentWorkspace.addWidget

bool addWidget(panel.widget.Widget widget, panel.position.Position position = null)

Requests the workspace add widget to the dock at position.

Parameters

widgeta #PanelWidget
positiona #PanelPosition or null

Returns

true if widget was added; otherwise false and widget

will have [gobject.object.ObjectWrap.refSink] called and unref'd from an idle callback.