create_menu


Description:

[ 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.

Note:

Use Action and MenuModel instead, and create a Menu with Menu.from_model

Parameters:

this

a Action

Returns:

the menu item provided by the action, or null.