Package: gtk

Function gtk-toggle-button-mode

Lambda List

gtk-toggle-button-mode (button)

Syntax

(gtk-toggle-button-mode button) => draw-indicator
(setf (gtk-toggle-button-mode button) draw-indicator)

Arguments

button -- a gtk-toggle-button widget
draw-indicator -- if true, draw the button as a separate indicator and label, if false, draw the button like a normal button

Details

Accessor of the mode of the toggle button.

The gtk-toggle-button-mode function retrieves whether the button is displayed as a separate indicator and label. The (setf gtk-toggle-button-mode) function sets whether the button is displayed as a separate indicator and label.

You can call this function on a check button or a radio button with the false value for draw-indicator to make the button look like a normal button.

This function only affects instances of classes like the gtk-check-button and gtk-radio-button classes that derive from the gtk-toggle-button class, not instances of the gtk-toggle-button class itself.

Note

The function gtk-toggle-button-mode is equivalent to the slot access function gtk-toggle-button-draw-indicator.
 

See also

2021-12-23