Re: [gtk-list] Setting option menus



> the user currently has kOhms or mOhms selected, I want to reset the
> option menu to display Ohms.  I have been looking through the GTK+
> tutorial at www.gtk.org and have also been looking through "Developing
> Linux Applications" on how to do this, but to no avail.  I found a
> gtk_menu_set_active() function, is that the way to go

Try gtk_option_menu_set_history (GtkOptionMenu *, int)
where int is the option number

Iain



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