Sets our main struct and passes it to the parent class.
Creates a new #GMenu.
Convenience function for appending a normal menu item to the end of @menu. Combine g_menu_item_new() and g_menu_insert_item() 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 g_menu_item_new_section() and g_menu_insert_item() for a more flexible alternative.
Convenience function for appending a submenu menu item to the end of @menu. Combine g_menu_item_new_submenu() and g_menu_insert_item() 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 g_menu_item_new() and g_menu_insert_item() for a more flexible alternative.
Inserts @item into @menu.
Convenience function for inserting a section menu item into @menu. Combine g_menu_item_new_section() and g_menu_insert_item() for a more flexible alternative.
Convenience function for inserting a submenu menu item into @menu. Combine g_menu_item_new_submenu() and g_menu_insert_item() for a more flexible alternative.
Convenience function for prepending a normal menu item to the start of @menu. Combine g_menu_item_new() and g_menu_insert_item() 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 g_menu_item_new_section() and g_menu_insert_item() for a more flexible alternative.
Convenience function for prepending a submenu menu item to the start of @menu. Combine g_menu_item_new_submenu() and g_menu_insert_item() 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 #GMenuModel::items-changed signal on @model.
Creates a #GMenuAttributeIter to iterate over the attributes of the item at position @item_index in @model.
Creates a #GMenuLinkIter to iterate over the links of the item at position @item_index in @model.
Emitted when a change has occured to the menu.
#GMenu is a simple implementation of #GMenuModel. You populate a #GMenu by adding #GMenuItem instances to it.
There are some convenience functions to allow you to directly add items (avoiding #GMenuItem) for the common cases. To add a regular item, use g_menu_insert(). To add a section, use g_menu_insert_section(). To add a submenu, use g_menu_insert_submenu().