how to set optionmenu to selection?


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?

Ralf Müller

Institut für Kristallographie   Tel: 0241 80 96906
RWTH Aachen                     Fax: 0241 80 92184
D-52056 Aachen 

Attachment: pgpMFCImFKbKy.pgp
Description: PGP signature

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