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

30 lines
427 B
Text

using Gtk 4.0;
menu my_menu {
section {
label: "test section";
}
submenu {
label: "test submenu";
item {
label: "test 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";
}
}
}