[ CCode ( has_construct_function = false , type = "AdapDialog*" ) ]
public AlertDialog (string? heading, string? body)
Creates a new `AdapAlertDialog`.
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 [method@AlertDialog.format_body] or similar methods afterwards:
```c AdapDialog *dialog;
dialog = adap_alert_dialog_new (_("Replace File?"), NULL); adap_alert_dialog_format_body (ADAP_ALERT_DIALOG (dialog), _("A file named “s” already exists. Do you want to replace it?"), filename); ```
| heading |
the heading |
| body |
the body text |
|
the newly created `AdapAlertDialog` |