Package: gtk

Function gtk:message-dialog-new-with-markup

Lambda List

gtk:message-dialog-new-with-markup (parent flags type buttons message &rest args)

Arguments

parent -- a gtk:window transient parent, or nil for none
flags -- a value of the gtk:dialog-flags flags
type -- a value of the gtk:message-type enumeration
buttons -- set of values of the gtk:buttons-type enumeration for the buttons to use
message -- a format string, or nil
args -- arguments for message

Return Value

The new gtk:message-dialog widget.

Details

Creates a new message dialog, which is a simple dialog with 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 the gtk:response-type enumeration. See the gtk:dialog class for more details.

Special XML characters in the message arguments passed to this function will automatically be escaped as necessary. 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 the gtk:message-dialog-set-markup function instead, since you cannot pass the markup string either as the format, it might contain '%' characters, or as a string argument.

Examples

(let ((dialog (gtk:message-dialog-new main-window
                                      '(:destroy-with-parent)
                                      :error
                                      close
                                      nil)))
  (gtk:message-dialog-set-markup dialog markup)
  ... )    
 

See also

2024-4-8