1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
A subclass widget for #GtkMenuShell which holds #GtkMenuItem widgets
7
<!-- ##### SECTION Long_Description ##### -->
9
The #GtkMenuBar is a subclass of #GtkMenuShell which contains one to many #GtkMenuItem. The result is a standard menu bar which can hold many menu items. #GtkMenuBar allows for a shadow type to be set for aesthetic purposes. The shadow types are defined in the #gtk_menu_bar_set_shadow_type function.
12
<!-- ##### SECTION See_Also ##### -->
14
#GtkMenuShell, #GtkMenu, #GtkMenuItem
17
<!-- ##### SECTION Stability_Level ##### -->
20
<!-- ##### STRUCT GtkMenuBar ##### -->
22
The #GtkMenuBar struct contains the following fields. (These fields should be considered read-only. They should never be set by an application.)
26
<!-- ##### ARG GtkMenuBar:child-pack-direction ##### -->
31
<!-- ##### ARG GtkMenuBar:pack-direction ##### -->
36
<!-- ##### ARG GtkMenuBar:internal-padding ##### -->
41
<!-- ##### ARG GtkMenuBar:shadow-type ##### -->
46
<!-- ##### FUNCTION gtk_menu_bar_new ##### -->
48
Creates the new #GtkMenuBar
51
@Returns: the #GtkMenuBar
54
<!-- ##### MACRO gtk_menu_bar_append ##### -->
56
Adds a new #GtkMenuItem to the end of the GtkMenuBar
60
@child: the #GtkMenuItem to add
61
@Deprecated: Use gtk_menu_shell_append() instead.
64
<!-- ##### MACRO gtk_menu_bar_prepend ##### -->
66
Adds a new #GtkMenuItem to the beginning of the GtkMenuBar
70
@child: the #GtkMenuItem to add
71
@Deprecated: Use gtk_menu_shell_prepend() instead.
74
<!-- ##### MACRO gtk_menu_bar_insert ##### -->
76
Adds a new #GtkMenuItem to the GtkMenuBar at the position defined by @position
80
@child: the #GtkMenuItem to add
81
@pos: the position in the item list where the @child is added.
82
@Deprecated: Use gtk_menu_shell_insert() instead.
85
<!-- ##### ENUM GtkPackDirection ##### -->
90
@GTK_PACK_DIRECTION_LTR:
91
@GTK_PACK_DIRECTION_RTL:
92
@GTK_PACK_DIRECTION_TTB:
93
@GTK_PACK_DIRECTION_BTT:
95
<!-- ##### FUNCTION gtk_menu_bar_set_pack_direction ##### -->
104
<!-- ##### FUNCTION gtk_menu_bar_get_pack_direction ##### -->
113
<!-- ##### FUNCTION gtk_menu_bar_set_child_pack_direction ##### -->
122
<!-- ##### FUNCTION gtk_menu_bar_get_child_pack_direction ##### -->