Method

GtkAccelGroupconnect

Declaration [src]

void
gtk_accel_group_connect (
  GtkAccelGroup* accel_group,
  guint accel_key,
  GdkModifierType accel_mods,
  GtkAccelFlags accel_flags,
  GClosure* closure
)

Description [src]

Installs an accelerator in this group. When accel_group is being activated in response to a call to gtk_accel_groups_activate(), closure will be invoked if the accel_key and accel_mods from gtk_accel_groups_activate() 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

accel_key

Type: guint

Key value of the accelerator.

accel_mods

Type: GdkModifierType

Modifier combination of the accelerator.

accel_flags

Type: GtkAccelFlags

A flag mask to configure this accelerator.

closure

Type: GClosure

Closure to be executed upon accelerator activation.

The data is owned by the caller of the method.