Method

GtkAccelGroupactivate

Declaration [src]

gboolean
gtk_accel_group_activate (
  GtkAccelGroup* accel_group,
  GQuark accel_quark,
  GObject* acceleratable,
  guint accel_key,
  GdkModifierType accel_mods
)

Description [src]

Finds the first accelerator in accel_group that matches accel_key and accel_mods, and activates it.

Parameters

accel_quark

Type: GQuark

The quark for the accelerator name.

acceleratable

Type: GObject

The GObject, usually a GtkWindow, on which to activate the accelerator.

The data is owned by the caller of the method.
accel_key

Type: guint

Accelerator keyval from a key event.

accel_mods

Type: GdkModifierType

Keyboard state mask from a key event.

Return value

Type: gboolean

TRUE if an accelerator was activated and handled this keypress.