Function

Gtkaccelerator_name

Declaration [src]

gchar*
gtk_accelerator_name (
  guint accelerator_key,
  GdkModifierType accelerator_mods
)

Description [src]

Converts an accelerator keyval and modifier mask into a string parseable by gtk_accelerator_parse(). For example, if you pass in

GDK_KEY_q and #GDK_CONTROL_MASK, this function returns “q”.

If you need to display accelerators in the user interface, see gtk_accelerator_get_label().

Parameters

accelerator_key guint
 

Accelerator keyval.

accelerator_mods GdkModifierType
 

Accelerator modifier mask.

Return value

Returns: gchar*
 

A newly-allocated accelerator name.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.