Constructor

GioSimplePermissionnew

since: 2.26

Declaration [src]

GPermission*
g_simple_permission_new (
  gboolean allowed
)

Description [src]

Creates a new GPermission instance that represents an action that is either always or never allowed.

Available since: 2.26

Parameters

allowed

Type: gboolean

TRUE if the action is allowed.

Return value

Type: GPermission

The GSimplePermission, as a GPermission.

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