AccelGroup.connect

void connect(uint accelKey, gdk.types.ModifierType accelMods, gtk.types.AccelFlags accelFlags, gobject.closure.Closure closure)

Installs an accelerator in this group. When accel_group is being activated in response to a call to [gtk.global.accelGroupsActivate], closure will be invoked if the accel_key and accel_mods from [gtk.global.accelGroupsActivate] match those of this connection.

The signature used for the closure is that of #GtkAccelGroupActivate.

Note that, due to implementation details, a single closure can only be connected to one accelerator group.

Parameters

accelKeykey value of the accelerator
accelModsmodifier combination of the accelerator
accelFlagsa flag mask to configure this accelerator
closureclosure to be executed upon accelerator activation