Gtk.ToggleAction
const Gtk = imports.gi.Gtk;
let toggle_action = new Gtk.ToggleAction({
active: value,
draw_as_radio: value,
});
A Gtk.ToggleAction corresponds roughly to a Gtk.CheckMenuItem. It has an "active" state specifying whether the action has been checked or not.
Hierarchy
-
GObject.Object
-
Gtk.Action
- Gtk.ToggleAction
-