Sets our main struct and passes it to the parent class.
Creates a new #GPermission instance that represents an action that is either always or never allowed.
Get the main Gtk struct
the main Gtk struct as a void*
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Attempts to acquire the permission represented by @permission.
Attempts to acquire the permission represented by @permission.
Collects the result of attempting to acquire the permission represented by @permission.
Gets the value of the 'allowed' property. This property is %TRUE if the caller currently has permission to perform the action that @permission represents the permission to perform.
Gets the value of the 'can-acquire' property. This property is %TRUE if it is generally possible to acquire the permission by calling g_permission_acquire().
Gets the value of the 'can-release' property. This property is %TRUE if it is generally possible to release the permission by calling g_permission_release().
This function is called by the #GPermission implementation to update the properties of the permission. You should never call this function except from a #GPermission implementation.
Attempts to release the permission represented by @permission.
Attempts to release the permission represented by @permission.
Collects the result of attempting to release the permission represented by @permission.
#GSimplePermission is a trivial implementation of #GPermission that represents a permission that is either always or never allowed. The value is given at construction and doesn't change.
Calling request or release will result in errors.