forked from AuroraMiddleware/gtk
a55ef45515
<section> doesn't need to be given in a menubar but it does need to be given for submenus, so add those ones back.
41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<?xml version="1.0"?>
|
|
<interface>
|
|
<menu id="appmenu">
|
|
<section>
|
|
<item label="_New" action="app.new" accel="<Primary>n"/>
|
|
<item label="_Open" action="app.open"/>
|
|
<item label="_Save" action="app.save" accel="<Primary>s"/>
|
|
<item label="Save _As..." action="app.save-as" accel="<Primary>s"/>
|
|
</section>
|
|
<section>
|
|
<item label="_Quit" action="app.quit" accel="<Primary>q"/>
|
|
</section>
|
|
</menu>
|
|
<menu id="menubar">
|
|
<submenu label="_Preferences">
|
|
<section>
|
|
<item label="_Prefer Dark Theme" action="app.dark"/>
|
|
<item label="_Hide Titlebar when maximized" action="win.titlebar"/>
|
|
<submenu label="_Color">
|
|
<section>
|
|
<item label="_Red" action="win.color" target="red" accel="<Primary>r"/>
|
|
<item label="_Green" action="win.color" target="green" accel="<Primary>g"/>
|
|
<item label="_Blue" action="win.color" target="blue" accel="<Primary>b"/>
|
|
</section>
|
|
</submenu>
|
|
<submenu label="_Shape">
|
|
<section>
|
|
<item label="_Square" action="win.shape" target="square" accel="<Primary>s"/>
|
|
<item label="_Rectangle" action="win.shape" target="rectangle" accel="<Primary>r"/>
|
|
<item label="_Oval" action="win.shape" target="oval" accel="<Primary>o"/>
|
|
</section>
|
|
</submenu>
|
|
<item label="_Bold" action="win.bold" accel="<Primary>b"/>
|
|
</section>
|
|
</submenu>
|
|
<submenu label="_Help">
|
|
<item label="_About" action="win.about" accel="<Primary>a"/>
|
|
</submenu>
|
|
</menu>
|
|
</interface>
|