gtkOptionMenuNew(show = TRUE)
gtkOptionMenuGetMenu(object)
gtkOptionMenuSetMenu(object, menu)
gtkOptionMenuRemoveMenu(object)
gtkOptionMenuSetHistory(object, index)
gtkOptionMenuGetHistory(object)
gtkOptionMenu(show = TRUE)
gtkMenuNew
, then appending menu items to it with
gtkMenuShellAppend
. Set that menu on the option menu
with gtkOptionMenuSetMenu
. Set the selected menu item with
gtkOptionMenuSetHistory
; connect to the "changed" signal on
the option menu; in the "changed" signal, check the new selected
menu item with gtkOptionMenuGetHistory
.
As of GTK+ 2.4, gtkOptionMenu
is the equivalent of gtkOptionMenuNew
.