Re: [gtkmm] menu items with _ in OptionsMenu
- From: "Andreas B. Thun" <abt gmx de>
- To: Roger Leigh <roger whinlatter uklinux net>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] menu items with _ in OptionsMenu
- Date: Tue, 13 Apr 2004 15:44:33 +0200
// View all enum values in options menu
Gtk::Menu *menu = manage(new Gtk::Menu());
MenuList& menuItems = menu->items();
Rows_t::iterator itr_vec; // [name, value]
for (itr_vec = values.begin(); itr_vec != values.end(); ++itr_vec) {
menuItems.push_back(MenuElem((*itr_vec)[1])); // display value
}
m_enumOptionsMenu.set_menu(*menu);
What code did you use to construct the menu?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]