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 -- transient gtk-window parent, or nil for none
flags -- flags of type gtk-dialog-flags
type -- type of message of type gtk-message-type
buttons -- set of buttons to use of type gtk-buttons-type
message -- format string, or nil
args -- the arguments for message

Return Value

A 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

2021-10-4