Prompt.perform

Runs a prompt and performs the prompting. Returns %TRUE if the prompt was completed and not dismissed.

If @window_id is non-null then it is used as an XWindow id on Linux. The API expects this id to be converted to a string using the <literal>%d</literal> printf format. The Secret Service can make its prompt transient for the window with this id. In some Secret Service implementations this is not possible, so the behavior depending on this should degrade gracefully.

This method will return immediately and complete asynchronously.

class Prompt
void
perform
(
string windowId
,
VariantType returnType
,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

windowId string

string form of XWindow id for parent window to be transient for

returnType VariantType

the variant type of the prompt result

cancellable Cancellable

optional cancellation object

callback GAsyncReadyCallback

called when the operation completes

userData void*

data to be passed to the callback

Meta