---
name: "Gtk2::OptionMenu"
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::OptionMenu"
---

# Gtk2::OptionMenu(3pm)

wrapper for GtkOptionMenu

## NAME

Gtk2::OptionMenu - wrapper for GtkOptionMenu

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Button
                                +----Gtk2::OptionMenu
```

## INTERFACES

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

## DEPRECATION WARNING

Gtk2::OptionMenu has been marked as deprecated, and should not be used in newly written code.

You should use Gtk2::ComboBox instead of Gtk2::OptionMenu.

## METHODS

### widget = Gtk2::OptionMenu-\>new

### integer = $option\_menu-\>get\_history

### $option\_menu-\>set\_history ($index)

- •

  `$index` (integer)

### widget = $option\_menu-\>get\_menu

### $option\_menu-\>set\_menu ($menu)

- •

  `$menu` (Gtk2::Widget)

### $option\_menu-\>remove\_menu

## PROPERTIES

- 'menu' (Gtk2::Menu : default undef : readable / writable / private)

  The menu of options

## STYLE PROPERTIES

- 'indicator-size' (Gtk2::Requisition : default undef : readable / private)

  Size of dropdown indicator

- 'indicator-spacing' (Gtk2::Border : default undef : readable / private)

  Spacing around indicator

## SIGNALS

- **changed** (Gtk2::OptionMenu)

  ## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button

## COPYRIGHT

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

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