On Sat, 2006-12-02 at 11:23 +0530, Naveen Kumar wrote:> Hi All,> i am using option menu in my application. Problem is i am unable to fetch> the Text(label) of the Menu item when it is selected.> > Based on the text collected(label) from the menu item, i need to update a> entry and a label in some other window.> how do i do it? In the "changed" signal handler for the GtkOptionMenu you get a pointerto the GtkOptionMenu itself. Using it, you can callgtk_option_menu_get_history to get the index of the currently selecteditem. You can store the strings of the menu items in an array and pickthe correct one using that index. You could consider using GtkComboBox --- GtkOptionMenu is a deprecatedwidget... Hope this helps, -- m -- Mariano Suárez-Alvarezhttp://www.gnome.org/~mariano _______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list