---
name: "Gtk2::CheckMenuItem"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::CheckMenuItem"
---

# Gtk2::CheckMenuItem(3pm)

wrapper for GtkCheckMenuItem

## NAME

Gtk2::CheckMenuItem - wrapper for GtkCheckMenuItem

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Item
                                +----Gtk2::MenuItem
                                     +----Gtk2::CheckMenuItem
```

## INTERFACES

```
  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
  Gtk2::Activatable
```

## METHODS

### widget = Gtk2::CheckMenuItem-\>new ($label=undef)

- •

  `$label` (string)

### widget = Gtk2::CheckMenuItem-\>new\_with\_label ($label=undef)

- •

  `$label` (string)

### widget = Gtk2::CheckMenuItem-\>new\_with\_mnemonic ($label=undef)

- •

  `$label` (string)

### boolean = $check\_menu\_item-\>get\_active

### $check\_menu\_item-\>set\_active ($is\_active)

- •

  `$is_active` (boolean)

### boolean = $check\_menu\_item-\>get\_draw\_as\_radio

Since: gtk+ 2.4

### $check\_menu\_item-\>set\_draw\_as\_radio ($draw\_as\_radio)

- •

  `$draw_as_radio` (boolean)

Since: gtk+ 2.4

### boolean = $check\_menu\_item-\>get\_inconsistent

### $check\_menu\_item-\>set\_inconsistent ($setting)

- •

  `$setting` (boolean)

### $menu\_item-\>set\_show\_toggle ($always)

- •

  `$always` (boolean)

### $check\_menu\_item-\>toggled

## PROPERTIES

- 'active' (boolean : default false : readable / writable / private)

  Whether the menu item is checked

- 'draw-as-radio' (boolean : default false : readable / writable / private)

  Whether the menu item looks like a radio menu item

- 'inconsistent' (boolean : default false : readable / writable / private)

  Whether to display an "inconsistent" state

## STYLE PROPERTIES

- 'indicator-size' (integer : default 13 : readable / private)

  Size of check or radio indicator

## SIGNALS

- **toggled** (Gtk2::CheckMenuItem)

  ## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Item, Gtk2::MenuItem

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
