MenuItem.setSection
void setSection(gio.menu_model.MenuModel section = null)Sets or unsets the "section" link of menu_item to section.
The effect of having one menu appear as a section of another is exactly as it sounds: the items from section become a direct part of the menu that menu_item is added to. See [gio.menu_item.MenuItem.newSection] for more information about what it means for a menu item to be a section.
Parameters
section | a #GMenuModel, or null |