Constructor

GtkShortcutLabelnew

since: 3.22

Declaration [src]

GtkWidget*
gtk_shortcut_label_new (
  const gchar* accelerator
)

Description [src]

Creates a new GtkShortcutLabel with accelerator set.

Available since: 3.22

Parameters

accelerator

Type: const gchar*

The initial accelerator.

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

Return value

Type: GtkWidget

A newly-allocated GtkShortcutLabel.

The caller of the function takes ownership of the data, and is responsible for freeing it.