Re: UIManager and dynamic menus
- From: Dodji Seketeli <dodji seketeli org>
- To: "Paul Davis" <pjdavis engineering uiowa edu>
- Cc: Gtkmm Mailing List <gtkmm-list gnome org>
- Subject: Re: UIManager and dynamic menus
- Date: Fri, 6 Apr 2007 15:16:07 +0200
Hello Paul,
On Wed, 4 Apr 2007 11:27:46 -0500
"Paul Davis" <pjdavis engineering uiowa edu> wrote:
> Hi list,
> What is the 'UIManager' way of having dynamic menus. I need this when
> adding a list of recent documents to the File menu or when creating a
> list of windows for a View menu.
>
I have done it this way:
http://svn.gna.org/viewcvs/nemiver/trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc?rev=450&view=auto.
Please search for DBGPerspective::get_contextual_menu .
The idea is I think to use Gtk::UIManager::add_ui() method.
The actions associated to menu item menus must have been created before
hand.
Maybe I am missing something obvious. Please, let me know.
Cheers,
--
Dodji Seketeli
http://www.seketeli.org/dodji
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]