Sets our main struct and passes it to the parent class.
Creates a new gtk.Menu
Convenience function for appending a normal menu item to the end of menu. Combine Menu.itemNew and Menu.insertItem for a more flexible alternative.
Appends item to the end of menu.
Convenience function for appending a section menu item to the end of menu. Combine Menu.itemNewSection and Menu.insertItem for a more flexible alternative.
Convenience function for appending a submenu menu item to the end of menu. Combine Menu.itemNewSubmenu and Menu.insertItem for a more flexible alternative.
Marks menu as frozen.
Get the main Gtk struct
the main Gtk struct as a void*
Convenience function for inserting a normal menu item into menu. Combine Menu.itemNew and Menu.insertItem for a more flexible alternative.
Inserts item into menu.
Convenience function for inserting a section menu item into menu. Combine Menu.itemNewSection and Menu.insertItem for a more flexible alternative.
Convenience function for inserting a submenu menu item into menu. Combine Menu.itemNewSubmenu and Menu.insertItem for a more flexible alternative.
Convenience function for prepending a normal menu item to the start of menu. Combine Menu.itemNew and Menu.insertItem for a more flexible alternative.
Prepends item to the start of menu.
Convenience function for prepending a section menu item to the start of menu. Combine Menu.itemNewSection and Menu.insertItem for a more flexible alternative.
Convenience function for prepending a submenu menu item to the start of menu. Combine Menu.itemNewSubmenu and Menu.insertItem for a more flexible alternative.
Removes an item from the menu.
Removes all items in the menu.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Queries the item at position item_index in model for the attribute specified by attribute.
Queries the item at position item_index in model for the link specified by link.
Query the number of items in model.
Queries if model is mutable.
Requests emission of the items-changed signal on model.
Creates a gio.MenuAttributeIter to iterate over the attributes of the item at position item_index in model.
Creates a gio.MenuLinkIter to iterate over the links of the item at position item_index in model.
Emitted when a change has occured to the menu.
gtk.Menu is a simple implementation of gio.MenuModel You populate a gtk.Menu by adding gtk.MenuItem instances to it.
There are some convenience functions to allow you to directly add items (avoiding gtk.MenuItem) for the common cases. To add a regular item, use Menu.insert. To add a section, use Menu.insertSection. To add a submenu, use Menu.insertSubmenu.