Re: how to set optionmenu to selection?



On Fri, 2003-08-08 at 04:45, Ralf MÃller wrote:
Hello,

in my option_menu I have

menu=GTK_OPTION_MENU(lookup_widget(GTK_WIDGET(dialog1), "optionmenu1"))->menu;  
gtk_menu_set_active (GTK_MENU(menu),index);

this does not update the widget.

How can I show the active item in the widget?

http://developer.gnome.org/doc/API/2.0/gtk/GtkOptionMenu.html#gtk-option-menu-set-history

And please see:
 
http://lists.ximian.com/archives/public/glade-devel/2003-February/000015.html

as to why generating code with glade is harmful. Use libglade instead.

Regards,
                                                Owen





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