Package: gtk

Accessor gtk:button-icon-name

Lambda List

gtk:button-icon-name (object)

Syntax

(gtk:button-icon-name object) => name
(setf (gtk:button-icon-name object) name)

Arguments

object -- a gtk:button widget
name -- a string for an icon name, or nil

Details

The accessor for the icon-name slot of the gtk:button class returns the icon name of the button, or adds a gtk:image widget with the given icon name as a child widget.

If the icon name has not been set the return value will be nil. This will be the case if you create an empty button with the gtk:button-new function to use as a container. If the button already contains a child widget, that child widget will be removed and replaced with the image.
 

See also

2025-08-05