Declaration [src]

gtk_accel_group_connect_by_path (
  GtkAccelGroup* accel_group,
  const gchar* accel_path,
  GClosure* closure

Description [src]

Installs an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers (see gtk_accel_map_add_entry()). 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 the key and modifiers for the path.

The signature used for the closure is that of GtkAccelGroupActivate.

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



Type: const gchar*

Path used for determining key and modifiers.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Type: GClosure

Closure to be executed upon accelerator activation.

The data is owned by the caller of the method.