Name
GtkOptionMenu -- a widget used to choose from a list of valid choices.
Description
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.
Details
struct GtkOptionMenu
The GtkOptionMenu struct contains private data only, and
should be accessed using the functions below.
gtk_option_menu_set_menu ()
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.
gtk_option_menu_remove_menu ()
Removes the menu from the option menu.
gtk_option_menu_set_history ()
void gtk_option_menu_set_history (GtkOptionMenu *option_menu,
guint index); |
Selects the menu item specified by index making it the newly
selected value for the option menu.
gtk_option_menu_get_history ()
Retrieves the index of the currently selected menu item. The menu
items are numbered from top to bottom, starting with 0.
Signals
The "changed" signal
void user_function (GtkOptionMenu *optionmenu,
gpointer user_data); |