Panel.DocumentWorkspace.add_widget

### Method

# Panel DocumentWorkspaceadd_widget

since: 1.4

#### Declaration [src]

    gboolean
    panel_document_workspace_add_widget (
      PanelDocumentWorkspace* self,
      PanelWidget* widget,
      PanelPosition* position
    )

#### Description [src]

Requests the workspace add `widget` to the dock at `position`.

Available since: 1.4

#### Parameters

`widget`

  Type: `PanelWidget`

  A `PanelWidget`.

  The data is owned by the caller of the method.

`position`

  Type: `PanelPosition`

  A `PanelPosition` or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

#### Return value

Type: `gboolean`

`TRUE` if `widget` was added; otherwise `FALSE` and `widget` will have `g_object_ref_sink()` called and unref’d from an idle callback.