Constructor
AdwMessageDialognew
Declaration [src]
GtkWidget*
adw_message_dialog_new (
GtkWindow* parent,
const char* heading,
const char* body
)
Description [src]
Creates a new AdwMessageDialog
.
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_message_dialog_format_body()
or similar methods afterwards:
GtkWidget *dialog;
dialog = adw_message_dialog_new (parent, _("Replace File?"), NULL);
adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog),
_("A file named ā%sā already exists. Do you want to replace it?"),
filename);
Available since: | 1.2 |
Parameters
parent |
GtkWindow |
Transient parent. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
heading |
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 |
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
Returns: | GtkWidget |
The newly created |
|
The data is owned by the called function. |