Description Usage Arguments Details Value Author(s)
Creates a new message dialog, which is a simple dialog with an icon
indicating the dialog type (error, warning, etc.) and some text which
is marked up with the Pango text markup language.
When the user clicks a button a "response" signal is emitted with
response IDs from GtkResponseType
. See GtkDialog
for more details.
1 2 | gtkMessageDialogNewWithMarkup(parent, flags, type, buttons, ...,
show = TRUE)
|
|
transient parent, or |
|
flags |
|
type of message |
|
set of buttons to use |
|
a new |
Special XML characters in the printf()
arguments passed to this
function will automatically be escaped as necessary.
(See gMarkupPrintfEscaped()
for how this is implemented.)
Usually this is what you want, but if you have an existing
Pango markup string that you want to use literally as the
label, then you need to use gtkMessageDialogSetMarkup
instead, since you can't pass the markup string either
as the format (it might contain '%' characters) or as a string
argument.
1 2 3 | dialog <- gtkMessageDialog(main_application_window, "destroy-with-parent",
"error", "close")
dialog$setMarkup(message)
|
Since 2.4
[GtkWidget
] a new GtkMessageDialog
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.