Package: gtk

Function gtk:widget-class-css-name

Lambda List

gtk:widget-class-css-name (gtype)

Syntax

(gtk:widget-class-css-name gtype) => name
(setf (gtk:widget-class-css-name gtype) name)

Arguments

gtype -- a g:type-t type ID
name -- a string for the CSS name

Details

Gets or sets the name to be used for CSS matching of widgets. Returns nil if there is no class for gtype. If this function is not called for a given class, the name set on the parent class is used. By default the gtk:widget class uses the name "widget".

Examples

Get the CSS name for the "GtkButton" class and change it.
(gtk:widget-class-css-name "GtkButton") => "button"
(setf (gtk:widget-class-css-name "GtkButton") "new") => "new"
(gtk:widget-class-css-name "GtkButton") => "new"    
There is no class of "unknown" type:
(gtk:widget-class-css-name "unknown") => NIL
(setf (gtk:widget-class-css-name "unknown") "name") => NIL    
 

See also

2025-08-23