Declaration [src]

gtk_accelerator_get_label_with_keycode (
  GdkDisplay* display,
  guint accelerator_key,
  guint keycode,
  GdkModifierType accelerator_mods

Description [src]

Converts an accelerator keyval and modifier mask into a string that can be displayed to the user.

The string may be translated.

This function is similar to gtk_accelerator_get_label(), but handling keycodes.

This is only useful for system-level components, applications should use gtk_accelerator_parse() instead.


display GdkDisplay*

a GdkDisplay or NULL to use the default display

 Can be NULL
 The data is owned by the caller of the function
accelerator_key guint

accelerator keyval

keycode guint

accelerator keycode

accelerator_mods GdkModifierType

accelerator modifier mask

Return value

Returns: char*

a newly-allocated string representing the accelerator.

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