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

Re: Access information of an optionsmenu



Norbert.Haefke@Freudenberg.de wrote:

>Hi 
>
>Question about the option menu:
>
>I need to figure out wich option was choosen from the user.
>I dont wont to use callbacks for this.
>
>Is there any function (or way) to get information
>from the optionmenu which option is currently displayed.
>
>Thanks for help
>
>Norbert
>_______________________________________________
>gtk-app-devel-list mailing list
>gtk-app-devel-list@gnome.org
>http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
Perhaps I'm missing the point, but from the docs at 
http://developer.gnome.org/doc/API/2.0/gtk/gtkoptionmenu.html#GTK-OPTION-MENU-GET-HISTORY, 
there is a function (gtk_option_menu_get_history) that "Retrieves the 
index of the currently selected menu item. The menu items are numbered 
from top to bottom, starting with 0." This sounds like exactly what is 
required.

Iain





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