Method

XdpPortalsession_inhibit

Declaration [src]

void
xdp_portal_session_inhibit (
  XdpPortal* portal,
  XdpParent* parent,
  const char* reason,
  XdpInhibitFlags flags,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer data
)

Description [src]

Inhibits various session status changes.

To obtain an ID that can be used to undo the inhibition, use xdp_portal_session_inhibit_finish() in the callback.

To remove an active inhibitor, call xdp_portal_session_uninhibit() with the same ID.

Parameters

parent XdpParent
 

Parent window information.

 The argument can be NULL.
 The data is owned by the caller of the function.
reason const char*
 

User-visible reason for the inhibition.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
flags XdpInhibitFlags
 

Information about what to inhibit.

cancellable GCancellable
 

Optional GCancellable

 The argument can be NULL.
 The data is owned by the caller of the function.
callback GAsyncReadyCallback
 

A callback to call when the request is done.

 The argument can be NULL.
data gpointer
 

Data to pass to callback.

 The argument can be NULL.
 The data is owned by the caller of the function.