blueprint-compiler/tests/samples/menu.ui
James Westman bbad6988fa
language: Fix some issues with menus
Blueprint's handling of menus didn't line up with how GtkBuilder handles
them. The root <menu> element must have an ID and may not have
attributes, and menus may not be used inline in a property.
2022-03-13 00:00:07 -06:00

27 lines
841 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<menu id="my_menu">
<section>
<attribute name="label">test section</attribute>
</section>
<submenu>
<attribute name="label">test submenu</attribute>
<item>
<attribute name="label">test item</attribute>
</item>
<item>
<attribute name="label">test item shorthand 1</attribute>
</item>
<item>
<attribute name="label">test item shorthand 2</attribute>
<attribute name="action">app.test-action</attribute>
</item>
<item>
<attribute name="label">test item shorthand 3</attribute>
<attribute name="action">app.test-action</attribute>
<attribute name="icon">test-symbolic</attribute>
</item>
</submenu>
</menu>
</interface>