Function

Purplemenu_copy

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.0

Parameters

model GMenuModel
 

The GMenuModel instance to copy.

 The data is owned by the caller of the function.

Return value

Returns: GMenu
 

The new menu.

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