Gtk.CheckMenuItem
const Gtk = imports.gi.Gtk;
let check_menu_item = new Gtk.CheckMenuItem({
active: value,
draw_as_radio: value,
inconsistent: value,
});
A Gtk.CheckMenuItem is a menu item that maintains the state of a boolean value in addition to a Gtk.MenuItem 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.MenuItem. Activating the Gtk.MenuItem toggles the value.
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
-
Gtk.Container
-
Gtk.Bin
-
Gtk.MenuItem
- Gtk.CheckMenuItem
-
-
-
-
-