Class: Gio::SimplePermission

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

GSimple::Permission 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.

Instance Method Summary collapse

Instance Method Details

#new(allowed) ⇒ Gio::Permission

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

Parameters:

  • allowed (TrueClass)

    true if the action is allowed

Returns: