Package: gtk

Function gtk:label-new-with-mnemonic

Lambda List

gtk:label-new-with-mnemonic (text)

Arguments

text -- a string with the text of the label, with an underscore in front of the mnemonic character

Return Value

The new gtk:label widget.

Details

Creates a new gtk:label widget, containing the given text.

If characters in text are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use '__' (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic. The mnemonic key can be used to activate another widget, chosen automatically, or explicitly using the gtk:label-mnemonic-widget function.

If the gtk:label-mnemonic-widget function is not called, then the first activatable ancestor of the gtk:label widget will be chosen as the mnemonic widget. For instance, if the label is inside a button or menu item, the button or menu item will automatically become the mnemonic widget and be activated by the mnemonic.
 

See also

2024-10-28