Label.setMnemonicWidget

Associate the label with its mnemonic target.

If the label has been set so that it has a mnemonic key (using i.e. gtk.label.Label.setMarkupWithMnemonic, gtk.label.Label.setTextWithMnemonic, gtk.label.Label.newWithMnemonic

or the propertyGtk.Label:use_underline property) the label can be associated with a widget that is the target of the mnemonic. When the label is inside a widget (like a gtk.button.Button or a gtk.notebook.Notebook tab) it is automatically associated with the correct widget, but sometimes (i.e. when the target is a gtk.entry.Entry next to the label) you need to set it explicitly using this function.

The target widget will be accelerated by emitting the signalGtk.Widget::mnemonic-activate signal on it. The default handler for this signal will activate the widget if there are no mnemonic collisions and toggle focus between the colliding widgets otherwise.

class Label
void
setMnemonicWidget

Parameters

widget gtk.widget.Widget

the target gtk.widget.Widget, or null to unset