blueprint-compiler/tests/samples/menu.blp
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

19 lines
325 B
Text

using Gtk 4.0;
menu my_menu {
section {
label: "test section";
}
submenu {
label: "test submenu";
item {
label: "test item";
}
item ("test item shorthand 1")
item ("test item shorthand 2", "app.test-action")
item ("test item shorthand 3", "app.test-action", "test-symbolic")
}
}