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.
30 lines
427 B
Text
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";
|
|
}
|
|
}
|
|
}
|