Package: gtk
Function gtk:message-dialog-new-with-markup
Lambda Listgtk:message-dialog-new-with-markup (parent flags type buttons message &rest args) ArgumentsReturn ValueThe 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 documentation 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(defun create-message-dialog-new-with-markup (parent filename) (let ((dialog (gtk:message-dialog-new-with-markup parent '(:modal :destroy-with-parent) :error :close "<b>Error loading file ~s</b>" filename))) (g:signal-connect dialog "response" (lambda (dialog response) (declare (ignore response)) (gtk:window-destroy dialog))) (gtk:window-present dialog))) Warning | See also |
2024-5-2