AlertDialog.this

Creates a new adw.alert_dialog.AlertDialog.

heading and body can be set to NULL. This can be useful if they need to be formatted or use markup. In that case, set them to NULL and call adw.alert_dialog.AlertDialog.formatBody or similar methods afterwards:

AdwDialog *dialog;

dialog = adw_alert_dialog_new (_("Replace File?"), NULL);
adw_alert_dialog_format_body (ADW_ALERT_DIALOG (dialog),
                              _("A file named “%s” already exists.  Do you want to replace it?"),
                              filename);
class AlertDialog
this
(
string heading = null
,
string body_ = null
)

Parameters

heading string

the heading

body_ string

the body text

Return Value