[gtkmm] Adding menuitem from UIManager to a context menu?



Hi,

I have added a the necessary UIManager, ActionGroups and Actions to add
a Menubar to my application.

Now I want to use one of these menuitems from the menubar in the
context menu of my TextView. For this I am using signal_populate_menus()
which gives me a Gtk::Menu to add MenuItems to.

How can I do something like this:

menulist.push_back(mainwindow->getUIManager()->get_widget("/MenuBar/Myitem"));

Thanks in advance.

  - Morten.

-- 
http://mbrix.dk/



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