connect


Description:

public void connect (uint accel_key, ModifierType accel_mods, AccelFlags accel_flags, owned AccelGroupActivate closure)

Installs an accelerator in this group.

When this is being activated in response to a call to accel_groups_activate, closure will be invoked if the accel_key and accel_mods from accel_groups_activate match those of this connection.

The signature used for the closure is that of AccelGroupActivate.

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

Parameters:

this

the accelerator group to install an accelerator in

accel_key

key value of the accelerator

accel_mods

modifier combination of the accelerator

accel_flags

a flag mask to configure this accelerator

closure

closure to be executed upon accelerator activation




2022 vala-language.org