mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
42 lines
No EOL
942 B
Text
42 lines
No EOL
942 B
Text
using Gtk 4.0;
|
|
|
|
$BlueprintTestObject {
|
|
// test-one: variant<"s">("one");
|
|
test-zero: variant<"b">(true);
|
|
test-one: variant<"s">("one");
|
|
test-two: variant<"i">(2);
|
|
test-three: variant<"(ii)">((3, 4));
|
|
test-four: variant<"ai">([5, 6]);
|
|
test-five: variant<"{sv}">({"key", <"value">});
|
|
test-six: variant<"a{ss}">({
|
|
"GLib": "2.24",
|
|
"Gtk": "4.16"
|
|
});
|
|
test-seven: variant<"ams">([just "2", nothing]);
|
|
}
|
|
|
|
menu test_menu {
|
|
submenu {
|
|
label: "Test menu";
|
|
item {
|
|
label: "Option 1";
|
|
action: "app.test_menu.set_action";
|
|
target: variant<"y">(1);
|
|
}
|
|
item {
|
|
label: "Option 2";
|
|
action: "app.test_menu.set_action";
|
|
target: variant<"y">(2);
|
|
}
|
|
item {
|
|
label: "Option 3";
|
|
action: "app.test_menu.set_action";
|
|
target: variant<"y">(3);
|
|
}
|
|
item {
|
|
label: "Option 4";
|
|
action: "app.test_menu.set_action";
|
|
target: variant<"y">(4);
|
|
}
|
|
}
|
|
} |