Class
GtkAlertDialog
Description [src]
final class Gtk.AlertDialog : GObject.Object {
/* No available fields */
}
A GtkAlertDialog
object collects the arguments that
are needed to present a message to the user.
The message is shown with the gtk_alert_dialog_choose()
function. This API follows the GIO async pattern, and the result can
be obtained by calling gtk_alert_dialog_choose_finish()
.
If you don’t need to wait for a button to be clicked, you can use
gtk_alert_dialog_show()
.
Available since: | 4.10 |
Instance methods
gtk_alert_dialog_choose_finish
Finishes the gtk_alert_dialog_choose()
call
and returns the index of the button that was clicked.
Available since: 4.10
gtk_alert_dialog_get_detail
Returns the detail text that will be shown in the alert.
Available since: 4.10
gtk_alert_dialog_get_message
Returns the message that will be shown in the alert.
Available since: 4.10
gtk_alert_dialog_get_modal
Returns whether the alert blocks interaction with the parent window while it is presented.
Available since: 4.10
gtk_alert_dialog_set_detail
Sets the detail text that will be shown in the alert.
Available since: 4.10
gtk_alert_dialog_set_message
Sets the message that will be shown in the alert.
Available since: 4.10
gtk_alert_dialog_set_modal
Sets whether the alert blocks interaction with the parent window while it is presented.
Available since: 4.10
Properties
Gtk.AlertDialog:cancel-button
This property determines what happens when the Escape key is pressed while the alert is shown.
Available since: 4.10
Gtk.AlertDialog:default-button
This property determines what happens when the Return key is pressed while the alert is shown.
Available since: 4.10