XfwWorkspaceManager: libxfce4windowing Reference Manual

## XfwWorkspaceManager XfwWorkspaceManager — An object that manages the workspace groups |

## Stability Level

Unstable, unless otherwise indicated

## Functions

GList * | xfw_workspace_manager_list_workspace_groups ()

## Properties

GdkScreen * | screen | Read / Write / Construct Only

## Signals

void | workspace-group-created | Run Last
void | workspace-group-destroyed | Run Last

## Types and Values

| XfwWorkspaceManager
typedef | XfwWorkspaceManagerIface

## Object Hierarchy

        GInterface
        ╰── XfwWorkspaceManager

## Prerequisites

XfwWorkspaceManager requires GObject.

## Includes

    #include <libxfce4windowing/libxfce4windowing.h>

## Description

XfwWorkspaceManager is used to enumerate and perform actions on the workspace groups present on the parent XfwScreen.

Note that XfwWorkspaceManager is actually an interface; when obtaining an instance, an instance of a windowing-environment-specific object that implements this interface will be returned.

## Functions

### xfw_workspace_manager_list_workspace_groups ()

    GList *
    xfw_workspace_manager_list_workspace_groups
                                   (XfwWorkspaceManager *manager);

Lists all workspace groups known to the workspace manager.

#### Parameters

manager | an XfwWorkspaceManager. |

#### Returns

the list of XfwWorkspaceGroup managed by `manager` , or `NULL` if there are no workspace groups. The list and its contents are owned by `manager` .

[nullable][element-type XfwWorkspaceGroup][transfer none]

## Types and Values

### XfwWorkspaceManager

    typedef struct _XfwWorkspaceManager XfwWorkspaceManager;

### XfwWorkspaceManagerIface

    typedef struct _XfwWorkspaceManagerInterface XfwWorkspaceManagerIface;

## Property Details

### The `“screen”` property

      “screen”                   GdkScreen *

The GdkScreen instance used to construct the XfwScreen that owns this workspace manager.

Owner: XfwWorkspaceManager

Flags: Read / Write / Construct Only

## Signal Details

### The `“workspace-group-created”` signal

    void
    user_function (XfwWorkspaceManager *manager,
                   XfwWorkspaceGroup   *group,
                   gpointer             user_data)

Emitted when a new workspace group is craeted.

#### Parameters

manager | the object which received the signal. |
group | the newly-created XfwWorkspaceGroup. | [not nullable]
user_data | user data set when the signal handler was connected. |

Flags: Run Last

### The `“workspace-group-destroyed”` signal

    void
    user_function (XfwWorkspaceManager *manager,
                   XfwWorkspaceGroup   *group,
                   gpointer             user_data)

Emitted when a workspace group is destroyed.

#### Parameters

manager | the object which received the signal. |
group | the recently-destroyed XfwWorkspaceGroup. | [not nullable]
user_data | user data set when the signal handler was connected. |

Flags: Run Last