markup_accel_tooltip


Description:


public string markup_accel_tooltip (string[]? accels, string? description = null)

Takes a description and an array of accels and returns Pango markup for use in a Gtk.Tooltip. This method uses Granite.accel_to_string.

Example:

Description Shortcut 1, Shortcut 2

Parameters:

description

a standard tooltip text string

a

string array of accelerator labels like {"<Control>a", "<Super>Right"}

Returns:

Pango markup with the description label on one line and a list of human-readable accels on a new line


Namespace: Granite
Package: granite