Package: gtk

Accessor gtk:widget-name

Lambda List

gtk:widget-name (object)

Syntax

(gtk:widget-name object) => name
(setf (gtk:widget-name object) name)

Arguments

object -- a gtk:widget object
name -- a string for the name of the widget

Details

Accessor of the name slot of the gtk:widget class. The gtk:widget-name function retrieves the name of the widget. The (setf gtk:widget-name) function sets the name.

Widgets can be named, which allows you to refer to them from a CSS file. You can apply a style to widgets with a particular name in the CSS file. Note that the CSS syntax has certain special characters to delimit and represent elements in a selector (period, #, >, *...), so using these will make your widget impossible to match by name. Any combination of alphanumeric symbols, dashes and underscores will suffice.
 

See also

2025-2-13