dynamic submenus



How do I go about displaying a submenu that is created dynamically ?
I want it to appear to have the same functionality as a static
submenu, in terms of placement, mouse action etc. It seems tricky to
do using an ItemFactory, and hard otherwise. If I define the submenu's
parent as a "<Branch>" then its never activated, so I can't create the
submenu via a callback. If I define it as an "<Item>" then it can't
accept a submenu via gtk_menuitem_set_submenu(), and even if I could,
its not clear that doing this from the callback would have the right
semantics. 

any clues ?

--p



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