Function

Purplemenu_copy

since: 3.0

Declaration [src]

GMenu*
purple_menu_copy (
  GMenuModel* model
)

Description [src]

Creates a full copy of model as a new GMenu. If model was not a GMenu instance, any additional functionality will be lost.

Available since: 3.0

Parameters

model

Type: GMenuModel

The GMenuModel instance to copy.

The data is owned by the caller of the function.

Return value

Type: GMenu

The new menu.

The caller of the function takes ownership of the data, and is responsible for freeing it.