Sets our main struct and passes it to the parent class
Creates a new GtkMenuBar
Creates a new GtkMenuBar and populates it with menu items and submenus according to model. The created menu items are connected to actions found in the GtkApplicationWindow to which the menu bar belongs - typically by means of being contained within the GtkApplicationWindows widget hierarchy.
Retrieves the current child pack direction of the menubar. See gtk_menu_bar_set_child_pack_direction(). Since 2.8
Retrieves the current pack direction of the menubar. See gtk_menu_bar_set_pack_direction(). Since 2.8
the main Gtk struct as a void*
Sets how widgets should be packed inside the children of a menubar. Since 2.8
Sets how items should be packed inside a menubar. Since 2.8
the main Gtk struct
the main Gtk struct
the main Gtk struct as a void*
An action signal that activates the current menu item within the menu shell.
An action signal which cancels the selection within the menu shell. Causes the "selection-done" signal to be emitted.
A keybinding signal which moves the focus in the given direction.
This signal is emitted when a menu shell is deactivated.
The ::insert signal is emitted when a new GtkMenuItem is added to a GtkMenuShell. A separate signal is used instead of GtkContainer::add because of the need for an additional position parameter. The inverse of this signal is the GtkContainer::removed signal. Since 3.2
An keybinding signal which moves the current menu item in the direction specified by direction.
The ::move-selected signal is emitted to move the selection to another item. TRUE to stop the signal emission, FALSE to continue Since 2.12
This signal is emitted when a selection has been completed within a menu shell.
Adds a new GtkMenuItem to the end of the menu shell's item list.
Adds a new GtkMenuItem to the beginning of the menu shell's item list.
Adds a new GtkMenuItem to the menu shell's item list at the position indicated by position.
Deactivates the menu shell. Typically this results in the menu shell being erased from the screen.
Selects the menu item from the menu shell.
Select the first visible or selectable child of the menu shell; don't select tearoff items unless the only item is a tearoff item. Since 2.2
Deselects the currently selected item from the menu shell, if any.
Activates the menu item within the menu shell.
Cancels the selection within the menu shell. Since 2.4
If take_focus is TRUE (the default) the menu shell will take the keyboard focus so that it will receive all keyboard events which is needed to enable keyboard navigation in menus. Setting take_focus to FALSE is useful only for special applications like virtual keyboard implementations which should not take keyboard focus. The take_focus state of a menu or menu bar is automatically propagated to submenus whenever a submenu is popped up, so you don't have to worry about recursively setting it for your entire menu hierarchy. Only when programmatically picking a submenu and popping it up manually, the take_focus property of the submenu needs to be set explicitely. Since 2.8
Returns TRUE if the menu shell will take the keyboard focus on popup. Since 2.8
Gets the currently selected item.
Gets the parent menu shell. The parent menu shell of a submenu is the GtkMenu or GtkMenuBar from which it was opened up.
Establishes a binding between a GtkMenuShell and a GMenuModel. The contents of shell are removed and then refilled with menu items according to model. When model changes, shell is updated. Calling this function twice on shell with different model will cause the first binding to be replaced with a binding to the new model. If model is NULL then any previous binding is undone and all children are removed. with_separators determines if toplevel items (eg: sections) have separators inserted between them. This is typically desired for menus but doesn't make sense for menubars. If action_namespace is non-NULL then the effect is as if all actions mentioned in the model have their names prefixed with the namespace, plus a dot. For example, if the action "quit" is mentioned and action_namespace is "app" then the effective action name is "app.quit". This function uses GtkActionable to define the action name and target values on the created menu items. If you want to use an action group other than "app" and "win", or if you want to use a GtkMenuShell outside of a GtkApplicationWindow, then you will need to attach your own action group to the widget hierarchy using gtk_widget_insert_action_group(). As an example, if you created a group with a "quit" action and inserted it with the name "mygroup" then you would use the action name "mygroup.quit" in your GMenuModel. For most cases you are probably better off using gtk_menu_new_from_model() or gtk_menu_bar_new_from_model() or just directly passing the GMenuModel to gtk_application_set_app_menu() or gtk_application_set_menu_bar().
The GtkMenuBar is a subclass of GtkMenuShell which contains one or more GtkMenuItems. The result is a standard menu bar which can hold many menu items.