mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -04:00
add variant support for menus
This commit is contained in:
parent
f894301571
commit
a75adc7d1b
4 changed files with 39 additions and 13 deletions
|
@ -1,5 +1,15 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
menu root {
|
||||
submenu {
|
||||
name: "one";
|
||||
item {
|
||||
action: "app.foo_bar";
|
||||
target: variant<"s">("\"one\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
action-name: "app.shave_yak";
|
||||
action-target: variant<"y">("8");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue