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 with an icon name, or nil

Details

Accessor of the icon-name slot of the gtk:button class. The gtk:button-icon-name function returns the icon name of the button. 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. The (setf gtk:button-icon-name) function adds a gtk:image widget with the given icon name as a child widget. If the button already contains a child widget, that child widget will be removed and replaced with the image.
 

See also

2024-5-14