mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
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.
27 lines
841 B
XML
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>
|