Re: [gtk-list] reading an optionmenu setting




This may wind up being pretty messy/overkill for your app.  For mine, it
happened to work out well this way.

What I do is to give each GtkMenuItem I create an 'activate' event which
calls a function unique to the option menu with the ID number of the item
as the data.  In my case, that function does something as soon as the item
is picked.  In your case, you might want it to just store the item id or
its contents in a global variable.

This is obviously not a 'reasonable' solution, but it does work.

Jeremy Weatherford
xidus@xidus.net
http://xidus.net/

On Mon, 7 Feb 2000, jca wrote:

> 
>   I've looked through the reference docs for this, but no luck so far...
> 
> 
>   How do you find out what value the user set your optionmenu to?
> There's no gtk_option_menu_get_history()...
> 
>   Thanks,
>   jca
> 
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 



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