Connect to Toggled signal.
Returns whether the check menu item is active. See gtk_check_menu_item_set_active ().
Returns whether check_menu_item looks like a #GtkRadioMenuItem
Retrieves the value set by gtk.check_menu_item.CheckMenuItem.setInconsistent.
Returns this, for use in with statements.
Sets the active state of the menu item’s check box.
Sets whether check_menu_item is drawn like a #GtkRadioMenuItem
If the user has selected a range of elements (such as some text or spreadsheet cells) that are affected by a boolean setting, and the current values in that range are inconsistent, you may want to display the check in an “in between” state. This function turns on “in between” display. Normally you would turn off the inconsistent state again if the user explicitly selects a setting. This has to be done manually, gtk.check_menu_item.CheckMenuItem.setInconsistent only affects visual appearance, it doesn’t affect the semantics of the widget.
Emits the #GtkCheckMenuItem::toggled signal.
Get builder for gtk.check_menu_item.CheckMenuItem
Creates a new #GtkCheckMenuItem with a label.
Creates a new #GtkCheckMenuItem containing a label. The label will be created using gtk.label.Label.newWithMnemonic, so underscores in label indicate the mnemonic for the menu item.
Returns this, for use in with statements.
Get builder for gtk.menu_item.MenuItem
Get accelPath property.
Set accelPath property.
Get label property.
Set label property.
Get rightJustified property.
Set rightJustified property.
Get submenu property.
Set submenu property.
Get useUnderline property.
Set useUnderline property.
Creates a new #GtkMenuItem whose child is a #GtkLabel.
Creates a new #GtkMenuItem containing a label.
Emits the #GtkMenuItem::activate signal on the given item
Emits the #GtkMenuItem::deselect signal on the given item.
Retrieve the accelerator path that was previously set on menu_item.
Sets text on the menu_item label
Returns whether the menu_item reserves space for the submenu indicator, regardless if it has a submenu or not.
Gets whether the menu item appears justified at the right side of the menu bar.
Gets the submenu underneath this menu item, if any. See gtk.menu_item.MenuItem.setSubmenu.
Checks if an underline in the text indicates the next character should be used for the mnemonic accelerator key.
Emits the #GtkMenuItem::select signal on the given item.
Set the accelerator path on menu_item, through which runtime changes of the menu item’s accelerator caused by the user can be identified and saved to persistent storage (see gtk.accel_map.AccelMap.save on this). To set up a default accelerator for this menu item, call gtk.accel_map.AccelMap.addEntry with the same accel_path. See also gtk.accel_map.AccelMap.addEntry on the specifics of accelerator paths, and gtk.menu.Menu.setAccelPath for a more convenient variant of this function.
Sets text on the menu_item label
Sets whether the menu_item should reserve space for the submenu indicator, regardless if it actually has a submenu or not.
Sets whether the menu item appears justified at the right side of a menu bar. This was traditionally done for “Help” menu items, but is now considered a bad idea. (If the widget layout is reversed for a right-to-left language like Hebrew or Arabic, right-justified-menu-items appear at the left.)
Sets or replaces the menu item’s submenu, or removes it when a null submenu is passed.
If true, an underline in the text indicates the next character should be used for the mnemonic accelerator key.
Emits the #GtkMenuItem::toggle-size-allocate signal on the given item.
Emits the #GtkMenuItem::toggle-size-request signal on the given item.
Connect to Activate signal.
Connect to ActivateItem signal.
Connect to Deselect signal.
Connect to Select signal.
Connect to ToggleSizeAllocate signal.
Connect to ToggleSizeRequest signal.
A #GtkCheckMenuItem is a menu item that maintains the state of a boolean value in addition to a #GtkMenuItem usual role in activating application code.
A check box indicating the state of the boolean value is displayed at the left side of the #GtkMenuItem. Activating the #GtkMenuItem toggles the value.
CSS nodes
GtkCheckMenuItem has a main CSS node with name menuitem, and a subnode with name check, which gets the .left or .right style class.