Package: gtk

Accessor gtk:label-attributes

Lambda List

gtk:label-attributes (object)

Syntax

(gtk:label-attributes object) => attrs
(setf (gtk:label-attributes object) attrs)

Arguments

object -- a gtk:label widget
attrs -- a pango:attr-list instance

Details

The accessor for the attributes slot of the gtk:label class gets or sets the attribute list on the label. The attributes in the list are applied to the label text.

This function does not reflect attributes that come from the labels markup, see the gtk:label-set-markup function. If you want to get the effective attributes for the label, use
(pango:layout-attributes (gtk:label-layout label)) => attrs  

Notes

The attributes set with this function will be applied and merged with any other attributes previously effected by way of the use-underline or use-markup properties. While it is not recommended to mix markup strings with manually set attributes, if you must, know that the attributes will be applied to the label after the markup string is parsed.
 

See also

2025-08-28