Package: gtk

Function gtk-application-accels-for-action

Lambda List

gtk-application-accels-for-action (application name)

Syntax

(gtk-application-accels-for-action application name) => accels
(setf (gtk-application-accels-for-action application name) accels)

Arguments

application -- a gtk-application instance
name -- a string with a detailed action name, specifying an action and target
accels -- a string or a list of strings of accelerators in the format understood by the gtk-accelerator-parse function

Details

Accessor of the accelerators that are associated with the given action.

The gtk-application-accels-for-action function gets the keyboard accelerators that will trigger the given action. The (setf gtk-application-accels-for-action) function sets zero or more keyboard accelerators.

The first item in the list of accelerators will be the primary accelerator, which may be displayed in the UI. To remove all accelerators for an action, use an empty list.

For the detailed action name, see the g-action-parse-detailed-name and g-action-print-detailed-name functions.
 

See also

2021-9-4