Package: gtk

Class gtk-check-menu-item

Superclasses

gtk-menu-item, gtk-bin, gtk-container, gtk-widget, gtk-buildable, gtk-activatable, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

Direct Slots

active
The active property of type :boolean (Read / Write)
Whether the menu item is checked.
Default value: false
draw-as-radio
The draw-as-radio property of type :boolean (Read / Write)
Whether the menu item looks like a radio menu item.
Default value: false
inconsistent
The inconsistent property of type :boolean (Read / Write)
Whether to display an "inconsistent" state.
Default value: false

Details

A gtk-check-menu-item is a menu item that maintains the state of a boolean value in addition to a gtk-menu-item usual role in activating application code.

A check box indicating the state of the boolean value is displayed at the left side of the gtk-menu-item. Activating the gtk-menu-item toggles the value.

CSS nodes

 menuitem
 ├── check.left
 ╰── <child>    
The gtk-check-menu-item implementation has a main CSS node with name menuitem, and a subnode with name check, which gets the .left or .right style class.

Style Property Details

indicator-size
The indicator-size style property of type :int (Read)
Size of check or radio indicator.
Warning: The indicator-size style property has been deprecated since version 3.20 and should not be used in newly written code. Use the standard CSS property min-width on the check or radio nodes. The value of this style property is ignored.
Allowed values: >= 0
Default value: 16

Signal Details

The "toggled" signal
 lambda (item)    :run-first      
The signal is emitted when the state of the check box is changed. A signal handler can use the gtk-check-menu-item-active function to discover the new state.
item
The gtk-check-menu-item widget which received the signal.
 

Slot Access Functions

Inherited Slot Access Functions

See also

2020-9-3