[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
public MessageDialog (Window? parent, string? heading, string? body)
Creates a new `AdapMessageDialog`.
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@MessageDialog.format_body] or similar methods afterwards:
```c GtkWidget *dialog;
dialog = adap_message_dialog_new (parent, _("Replace File?"), NULL); adap_message_dialog_format_body (ADAP_MESSAGE_DIALOG (dialog), _("A file named “s” already exists. Do you want to replace it?"), filename); ```
| parent |
transient parent |
| heading |
the heading |
| body |
the body text |
|
the newly created `AdapMessageDialog` |