More clearly define 'named menu' in the XML parser
[glib.git] / gio / menumarkup2.xml
bloba505e88a99e920ac7f39ac1eb9bef52d1662d62d
1 <menu id='menubar'>
2   <item>
3     <attribute name='label'>File</attribute>
4   </item>
5   <item>
6     <attribute name='label'>Edit</attribute>
7   </item>
8   <item>
9     <attribute name='label'>View</attribute>
10     <link name='submenu'>
11       <item>
12         <link name='section'>
13           <item>
14             <attribute name='label'>Toolbar</attribute>
15             <attribute name='action'>toolbar</attribute>
16           </item>
17           <item>
18             <attribute name='label'>Statusbar</attribute>
19             <attribute name='action'>statusbar</attribute>
20           </item>
21         </link>
22       </item>
23       <item>
24         <link name='section'>
25           <item>
26             <attribute name='label'>Fullscreen</attribute>
27             <attribute name='action'>fullscreen</attribute>
28           </item>
29         </link>
30       </item>
31       <item>
32         <link name='section'>
33           <item>
34             <attribute name='label'>Highlight Mode</attribute>
35             <link name='submenu'>
36               <item>
37                 <attribute name='label'>Sources</attribute>
38                 <link name='section'>
39                   <item>
40                     <attribute name='label'>Vala</attribute>
41                     <attribute name='action'>sources</attribute>
42                     <attribute name='target'>vala</attribute>
43                   </item>
44                   <item>
45                     <attribute name='label'>Python</attribute>
46                     <attribute name='action'>sources</attribute>
47                     <attribute name='target'>python</attribute>
48                   </item>
49                 </link>
50               </item>
51               <item>
52                 <attribute name='label'>Markup</attribute>
53                 <link name='section'>
54                   <item>
55                     <attribute name='label'>asciidoc</attribute>
56                     <attribute name='action'>markup</attribute>
57                     <attribute name='target'>asciidoc</attribute>
58                   </item>
59                   <item>
60                     <attribute name='label'>HTML</attribute>
61                     <attribute name='action'>markup</attribute>
62                     <attribute name='target'>html</attribute>
63                   </item>
64                 </link>
65               </item>
66             </link>
67           </item>
68         </link>
69       </item>
70     </link>
71   </item>
72   <item>
73     <attribute name='label'>Help</attribute>
74   </item>
75 </menu>