Package: gtk

Accessor gtk-actionable-action-name

Lambda List

gtk-actionable-action-name (object)

Syntax

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

Arguments

object -- a gtk-actionable widget
action-name -- an action name, or nil

Details

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

The generic function gtk-actionable-action-name gets the action name for object, or nil if none is set.

The generic function (setf gtk-actionable-action-name) specifies the name of the action with which this widget should be associated.

If action-name 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.

Names are of the form "win.save" or "app.quit" for actions on the containing gtk-application-window or its associated gtk-application, respectively. This is the same form used for actions in the g-menu 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"    
Since 3.4
 

See also

2014-7-19