Workspace.inhibit

Inhibits one or more particular actions in the session.

When the resulting #PanelInhibitor releases it's last reference the inhibitor will be dismissed. Alternatively, you may force the release of the inhibit using panel.inhibitor.Inhibitor.uninhibit.

Parameters

flags gtk.types.ApplicationInhibitFlags

the inhibit flags

reason string

the reason for the inhibit

Return Value

Type: panel.inhibitor.Inhibitor

a #PanelInhibitor or null