mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -04:00
Sections and submenus can have IDs. Also, change the code to better reflect the documented grammar.
17 lines
329 B
Text
17 lines
329 B
Text
using Gtk 4.0;
|
|
|
|
menu my-menu {
|
|
submenu {
|
|
section {
|
|
label: "test section";
|
|
}
|
|
|
|
item {
|
|
label: C_("context", "test translated item");
|
|
}
|
|
|
|
item ("test item shorthand 1")
|
|
item ("test item shorthand 2", "app.test-action")
|
|
item ("test item shorthand 3", "app.test-action", "test-symbolic")
|
|
}
|
|
}
|