Package: gtk

Accessor gtk-actionable-action-name

Lambda List

gtk-actionable-action-name (object)

Syntax

(gtk-actionable-action-name object) => name
(setf (gtk-actionable-action-name object) name)

Arguments

object -- a gtk-actionable widget
name -- a string with the action name, or nil

Details

Accessor of the action-name slot of the gtk-actionable inferface.

The gtk-actionable-action-name slot access function gets the action name for object, or nil if none is set. The (setf gtk-actionable-action-name) slot access function specifies the name of the action with which this widget should be associated. If the name argument is nil then the widget will be unassociated from any previous action. Usually this function is used when the widget is located, or will be located, within the hierarchy of a gtk-application-window widget.

Names are of the form "win.save" or "app.quit" for actions on the containing gtk-application-window widget or its associated gtk-application instance, respectively. This is the same form used for actions in the g-menu object associated with the window.

Example

(let ((button (make-instance 'gtk-button)))
  (setf (gtk-actionable-action-name button) "win.save")
  (gtk-actionable-action-name button))
=> "win.save"    
 

See also

*2021-10-31