Re: [gtk-list] Setting optionmenu's value




On 9 Aug 1998, Antti Kaipila wrote:
> 
> 	I was just wondering. How do I set the selected option in
> optionmenu? It's no trouble of setting some menu item as selected, but
> that does'nt seem to be enough in this case. When I have the following
> menu attached to a optionmenu button:
> 

gtk_optionmenu_set_history should do what you want. The items are numbered
starting with 0 and you set it to the one you want.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]