Function

Gtk-3.0Gtkaccelerator_name

  • 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: number

      accelerator keyval

    • accelerator_mods: Gdk.ModifierType

      accelerator modifier mask

    Returns string

    a newly-allocated accelerator name