[ Version ( since = "2.12" ) ]
public virtual unowned Widget create_menu ()
If this provides a Menu widget as a submenu for the menu item or the toolbar item it creates, this function returns an instance of that menu.
Use Action and MenuModel instead, and create a Menu with Menu.from_model
this |
a Action |
the menu item provided by the action, or null. |