Re: gtk option menu question



Andrea Bosio wrote:
> 
> Hi all.
> 
> I have a simple question.
> 
> I have a gtk option menu with all his items and so on.
> How can I select an item with something like
> gtk_option_menu_select_item_to_view(my_item)
> ?

gtk_option_menu_set_history     (GtkOptionMenu *option_menu,
                                              guint index);


Where index is the n'th element of your option menu, starting from zero.

Any chance a gtk+ developer add this to the FAQ, if it's not there
already?

Regards,

--
Lee.
http://atlas.cs.york.ac.uk/~lrpm100/

"If it bleeds, we can kill it."




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