Function

GtkAccelMapadd_entry

Declaration [src]

void
gtk_accel_map_add_entry (
  const gchar* accel_path,
  guint accel_key,
  GdkModifierType accel_mods
)

Description [src]

Registers a new accelerator with the global accelerator map. This function should only be called once per accel_path with the canonical accel_key and accel_mods for this path. To change the accelerator during runtime programatically, use gtk_accel_map_change_entry().

Set accel_key and accel_mods to 0 to request a removal of the accelerator.

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().

Parameters

accel_path

Type: const gchar*

Valid accelerator path.

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

Type: guint

The accelerator key.

accel_mods

Type: GdkModifierType

The accelerator modifiers.