blueprint-compiler/tests/samples/menu_dec.blp
James Westman dd3c75d2c7 Update menu syntax
Sections and submenus can have IDs. Also, change the code to better
reflect the documented grammar.
2023-04-12 21:44:07 -05:00

28 lines
431 B
Text

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