set_mnemonic_widget


Description:

public void set_mnemonic_widget (Widget? widget)

Associate the label with its mnemonic target.

If the label has been set so that it has a mnemonic key (using i.e. [[email protected]_markup_with_mnemonic], [ [email protected]_text_with_mnemonic], [[email protected]_with_mnemonic] or the [[email protected]: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 [[email protected]] or a [ [email protected]] tab) it is automatically associated with the correct widget, but sometimes (i.e. when the target is a [[email protected] ] next to the label) you need to set it explicitly using this function.

The target widget will be accelerated by emitting the [signal@GtkWidget:GtkLabel: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.

Parameters:

this

a `GtkLabel`

widget

the target `GtkWidget`, or null to unset




2022 vala-language.org