pub fn accelerator_name(
accelerator_key: Key,
accelerator_mods: ModifierType,
) -> GString
Expand description
Converts an accelerator keyval and modifier mask into a string
that can be parsed by accelerator_parse()
.
For example, if you pass in GDK_KEY_q
and GDK_CONTROL_MASK
,
this function returns <Control>q
.
If you need to display accelerators in the user interface,
see accelerator_get_label()
.
§accelerator_key
accelerator keyval
§accelerator_mods
accelerator modifier mask
§Returns
a newly-allocated accelerator name