Constructor

AdapAlertDialognew

since: 1.5

Declaration [src]

AdapDialog*
adap_alert_dialog_new (
  const char* heading,
  const char* body
)

Description [src]

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 adap_alert_dialog_format_body() or similar methods afterwards:

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);

Available since: 1.5

Parameters

heading

Type: const char*

The heading.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
body

Type: const char*

The body text.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: AdapDialog

The newly created AdapAlertDialog

The data is owned by the called function.