connect_by_path


Description:

public void connect_by_path (string accel_path, owned AccelGroupActivate closure)

Installs an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers (see add_entry).

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 the key and modifiers for the path.

The signature used for the closure is that of AccelGroupActivate .

Note that accel_path string will be stored in a Quark. Therefore, if you pass a static string, you can save some memory by interning it first with g_intern_static_string.

Parameters:

this

the accelerator group to install an accelerator in

accel_path

path used for determining key and modifiers

closure

closure to be executed upon accelerator activation