Re: UIManager and dynamic menus



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]