Re: UIManager and dynamic menus



On Wed, 2007-04-04 at 11:27 -0500, Paul Davis wrote:
> Hi list,
> 
> I've been working with UIManager quite a bit lately and I've come up
> against two issues that are fairly related.
> 
> 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've looked at the merge operations presented by UIManager, but they
> appear to be a bit heavier weight than I would expect for something
> like this.
> 
> If this merge/unmerge functionality is the way to go, does someone
> have a good example of doing this.  I'm fairly certain I get the
> basics, but having a good example is always nice too.

I did it an ugly way:
http://svn.gnome.org/viewcvs/glom/trunk/glom/application.cc?view=markup
see fill_menu_tables()

But it works.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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