Package: gtk
Class gtk:info-bar
Superclassesgtk:widget, gobject:initially-unowned, gtk:accessible, gtk:buildable, gtk:constraint-target, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The gtk:info-bar widget can be used to show messages to the user
without showing a dialog.
It is often temporarily shown at the top or bottom of a document. In contrast to the gtk:dialog widget, which has a horizontal action area at the
bottom, the info bar has a vertical action area at the side. ![]() The API of the gtk:info-bar widget is very similar to the gtk:dialog widget, allowing you to add buttons to the action area with the gtk:info-bar-add-button or gtk:info-bar-new-with-buttons functions. The sensitivity of action widgets can be controlled with the gtk:info-bar-set-response-sensitive function. To add widgets to the main content area of an info bar, use the gtk:info-bar-add-child function. Similar to the gtk:message-dialog widget, the contents of an info bar can by classified as error message, warning, informational message, and so on, by using the gtk:info-bar-message-type function. GTK may use the message type to determine how the message is displayed. Examples(defun create-info-bar (msg type) (let ((infobar (make-instance 'gtk:info-bar :message-type type :show-close-button t)) (message (make-instance 'gtk:label :label msg))) ;; Add a label with the message to the content of the info bar (gtk:info-bar-add-child infobar message) ;; Connect a signal handler to the info bar (g:signal-connect infobar "response" (lambda (widget response) (declare (ignore response)) (gtk:widget-hide widget))) infobar)) GtkInfoBar as GtkBuildableThe gtk:info-bar implementation supports a custom <action-widgets> element, which can contain multiple <action-widget> elements. The response attribute specifies a numeric response, and the content of the element is the ID of the widget, which should be a child of the dialogs action area. CSS nodesWarningSignal DetailsThe "close" signallambda (infobar) :action
The "response" signallambda (infobar response) :run-last
| Returned bySlot Access FunctionsInherited Slot Access FunctionsSee also |
2025-3-13