Package: gtk

Class gtk:accel-group

Superclasses

gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

is-locked
The is-locked property of type :boolean (Read)
Whether the accelerator group is locked.
Default value: false
modifier-mask
The modifier-mask property of type gdk:modifier-type (Read)
The modifier mask.
Default value: '(:shift-mask :control-mask :mod1-mask :super-mask :hyper-mask :meta-mask)

Details

The gtk:accel-group object represents a group of keyboard accelerators, typically attached to a toplevel gtk:window widget with the gtk:window-add-accel-group function. Usually you will not need to create a gtk:accel-group object directly. Instead, when using the gtk:ui-manager class, GTK automatically sets up the accelerators for your menus in the gtk:accel-group object of the UI manager.

Note that accelerators are different from mnemonics. Accelerators are shortcuts for activating a menu item. They appear alongside the menu item they are a shortcut for. For example Ctrl+Q might appear alongside the "Quit" menu item. Mnemonics are shortcuts for GUI elements such as text entries or buttons. They appear as underlined characters, see the gtk:label-new-with-mnemonic function. Menu items can have both accelerators and mnemonics, of course.

Signal Details

The "accel-activate" signal
lambda (group acceleratable keyval modifier)    :detailed      
group
The gtk:accel-group object that received the signal.
acceleratable
The g:object object on which the accelerator was activated.
keyval
The unsigned integer for the accelerator keyval.
modifier
The gdk:modifier-type value for the modifier combination of the accelerator.
Returns
True if the accelerator was activated.
The signal is an implementation detail of the gtk:accel-group class and not meant to be used by applications.
The "accel-changed" signal
lambda (group keyval modifier func)    :detailed      
group
The gtk:accel-group object that received the signal.
keyval
The unsigned integer for the accelerator keyval.
modifier
The gdk:modifier-type value for the modifier combination of the accelerator.
func
The g:closure callback function for the accelerator.
The signal is emitted when an entry is added to or removed from the accelerator group. Widgets like the gtk:accel-label widget which display an associated accelerator should connect to this signal, and rebuild their visual representation if func is theirs.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2025-07-17