[gtkmm] Activating a Window from a MenuItem



I understand that it is easy to write code that causes  a MenuItem to
activate another MenuItem.   Often a chain of such things must lead to
activating  some Window, like a FileSelection.  Is there a "one liner"
way to write this last activation ?

So far, the only way I see to do it  is to use  something like

 list.push_back(MenuElem("Last Menu Label",slot(
global_function_that_creates_the_FileSelection) ) );





--
Stephen Tashiro
tashiro trac wsmr army mil
tashiro zianet com
"Never let the task you are trying to accomplish
  distract you from the study of computers."






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