Package: gtk

Accessor gtk-tool-button-use-underline

Lambda List

gtk-tool-button-use-underline (object)

Syntax

(gtk-tool-button-use-underline object) => use-underline
(setf (gtk-tool-button-use-underline) use-underline)

Arguments

button -- a gtk-tool-button widget
use-underline -- a boolean whether the button label has the form "_Open"

Details

Accessor of the use-underline slot of the gtk-tool-button class.

The gtk-tool-button-use-underline slot access function returns whether underscores in the label property are used as mnemonics on menu items on the overflow menu.

If set, an underline in the label property indicates that the next character should be used for the mnemonic accelerator key in the overflow menu.

For example, if the label property is "_Open" and use-underline is true, the label on the tool button will be "Open" and the item on the overflow menu will have an underlined 'O'.

Labels shown on tool buttons never have mnemonics on them. This property only affects the menu item on the overflow menu.
 

See also

2021-11-30