Workspace.inhibit
panel.inhibitor.Inhibitor inhibit(gtk.types.ApplicationInhibitFlags flags, string reason)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 | the inhibit flags |
reason | the reason for the inhibit |
Returns
a #PanelInhibitor or null