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.
19 lines
325 B
Text
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")
|
|
}
|
|
}
|