Re: [gtkmm] how to get MenuItem text ?



>Well, this is not exactly what you're looking for, but maybe it helps.
>You can use optionmenu1.get_history() to get the index. And since i
>usually set the index from a list/vector/whatever it's quite easy to
>find the corresponding text.

cast MenuItem to Bin, then get the child, which is a Label, which has
a get_text() method. its works at the GTK+ level (C) anyway.

--p



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