Action.setLabel

void setLabel(string label)

Sets the label of action.

Parameters

labelthe label text to set

Deprecated

Use #GAction instead, and set a label on a menu item with

[gio.menu_item.MenuItem.setLabel]. For #GtkActionable widgets, use the widget-specific API to set a label