Function

Hemisc_accel_string

Declaration

gchar*
he_misc_accel_string (
  gchar** accels,
  gint accels_length1,
  const gchar* description
)

Description [src]

Takes a description and an array of accels and returns Pango markup for use in a GtkTooltip. This method uses he_misc_accel_label . Example: Description Shortcut 1, Shortcut 2.

Parameters

accels

Type: An array of gchar*

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

The argument can be NULL.
The length of the array is specified in the accels_length1 argument.
The data is owned by the caller of the function.
Each element is a NUL terminated UTF-8 string.
accels_length1

Type: gint

No description available.

description

Type: const gchar*

a standard tooltip text string .

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gchar*

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

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