GtkOptionMenu
a widget used to choose from a list of valid choices.
A #GtkOptionMenu is a widget that allows the user to choose from a
list of valid choices. The #GtkOptionMenu displays the selected
choice. When activated the #GtkOptionMenu displays a popup #GtkMenu
which allows the user to make a new choice.
The #GtkOptionMenu-struct struct contains private data only, and
should be accessed using the functions below.
Creates a new #GtkOptionMenu.
@Returns: a new #GtkOptionMenu.
Returns the #GtkMenu associated with the #GtkOptionMenu.
@option_menu: a #GtkOptionMenu.
@Returns: the #GtkMenu associated with the #GtkOptionMenu.
Provides the #GtkMenu that is popped up to allow the user to choose
a new value. You should provide a simple menu avoiding the
use of tearoff menu items, submenus, and accelerators.
@option_menu: a #GtkOptionMenu.
@menu: the #GtkMenu to associate with the #GtkOptionMenu.
Removes the menu from the option menu.
@option_menu: a #GtkOptionMenu.
Selects the menu item specified by @index making it the newly
selected value for the option menu.
@option_menu: a #GtkOptionMenu.
@index: the index of the menu item to select. Index values are from
0 to n-1.