Prompt
Object Hierarchy:
Description:
[
CCode ( type_id =
"gcr_prompt_get_type ()" ) ]
public interface Prompt :
Object
A prompt displayed to the user.
It is an interface with various implementations.
Various properties are set on the prompt, and then the prompt is displayed the various prompt methods like [method@Prompt.password_run].
A `GcrPrompt` may be used to display multiple related prompts. Most implementions do not hide the window between display of multiple related
prompts, and the Prompt must be closed or destroyed in order to make it go away. This allows the user to see that
the prompts are related.
Use `GcrPromptDialog` (part of gcr-ui) to create an in-process GTK+ dialog prompt. Use [class@SystemPrompt] to create a system prompt in a
prompter process.
The prompt implementation will always display the [property@Prompt:message] property, but may choose not to display the [
property@Prompt:description] or [property@Prompt:title] properties.
All known implementing classes:
Content:
Properties:
- public abstract string caller_window { owned get; set construct; }
The string handle of the caller's window.
- public abstract string cancel_label { owned get; set construct; }
The label for the cancel button in the prompt.
- public abstract bool choice_chosen { get; set; }
Whether the additional choice is chosen or not.
- public abstract string choice_label { owned get; set construct; }
The label for the additional choice.
- public abstract string continue_label { owned get; set construct; }
The label for the continue button in the prompt.
- public abstract string description { owned get; set construct; }
The detailed description of the prompt.
- public abstract string message { owned get; set construct; }
The prompt message for the user.
- public abstract bool password_new { get; set; }
Whether the prompt will prompt for a new password.
- public abstract int password_strength { get; }
Indication of the password strength.
- public abstract string title { owned get; set construct; }
The title of the prompt.
- public abstract string warning { owned get; set construct; }
A prompt warning displayed on the prompt, or null
for no warning.
Methods:
Signals:
Inherited Members:
All known members inherited from class GLib.Object