GtkMenuItem

GtkMenuItem

Widget used for item in menus.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkItem
                            `-- GtkMenuItem

Direct subclasses

Description

A GtkMenuItem is a container widget that can be packed into a GtkMenu or GtkMenuBar, containing a GtkAccelLabel and capable of being associated with a submenu.

Constructor

GtkMenuItem ([string label ]);
-- Creates a menu item.

Methods

set_submenu()
  Sets a GtkMenu as submenu.
remove_submenu()
  Removes a pre-existing submenu.
set_placement()
  Toggles placement of submenu relative to parent.
configure()
  Toggles indicators.
select()
  Emits the "select" signal.
deselect()
  Emits the "deselect" signal.
activate()
  Emits the "activate" signal.
right_justify()
  Sets item to the right of a GtkMenuBar.

Signals

"activate"
  Emitted when menu item is chosen.
"activate-item"
  Fired when activate_item() is called.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.