]> Pileus Git - ~andy/gtk/blob - docs/reference/gtk/tmpl/gtkmenubar.sgml
add default icon
[~andy/gtk] / docs / reference / gtk / tmpl / gtkmenubar.sgml
1 <!-- ##### SECTION Title ##### -->
2 GtkMenuBar
3
4 <!-- ##### SECTION Short_Description ##### -->
5 A subclass widget for #GtkMenuShell which holds #GtkMenuItem widgets
6
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>
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.
10 </para>
11
12 <!-- ##### SECTION See_Also ##### -->
13 <para>
14 #GtkMenuShell, #GtkMenu, #GtkMenuItem
15 </para>
16
17 <!-- ##### STRUCT GtkMenuBar ##### -->
18 <para>
19 The #GtkMenuBar struct contains the following fields. (These fields should be considered read-only.  They should never be set by an application.)
20 </para>
21
22
23 <!-- ##### FUNCTION gtk_menu_bar_new ##### -->
24 <para>
25 Creates the new #GtkMenuBar
26 </para>
27
28 @Returns: the #GtkMenuBar
29
30
31 <!-- ##### MACRO gtk_menu_bar_append ##### -->
32 <para>
33 Adds a new #GtkMenuItem to the end of the GtkMenuBar
34 </para>
35
36 @menu: 
37 @child: the #GtkMenuItem to add
38 <!-- # Unused Parameters # -->
39 @menu_bar: a #GtkMenuBar
40
41
42 <!-- ##### MACRO gtk_menu_bar_prepend ##### -->
43 <para>
44 Adds a new #GtkMenuItem to the beginning of the GtkMenuBar
45 </para>
46
47 @menu: 
48 @child: the #GtkMenuItem to add
49 <!-- # Unused Parameters # -->
50 @menu_child: 
51 @menu_bar: a #GtkMenuBar
52
53
54 <!-- ##### MACRO gtk_menu_bar_insert ##### -->
55 <para>
56 Adds a new #GtkMenuItem to the GtkMenuBar at the position defined by @position
57 </para>
58
59 @menu: 
60 @child: the #GtkMenuItem to add
61 @pos: 
62 <!-- # Unused Parameters # -->
63 @menu_bar: a #GtkMenuBar
64 @position: the position in the item list where the @child is added.
65
66