mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix menus
- Menus require an ID - The top level menu block can't have attributes
This commit is contained in:
parent
8a1dba662a
commit
51d8969ced
9 changed files with 43 additions and 13 deletions
|
@ -1,9 +1,6 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
menu {
|
||||
label: _("menu label");
|
||||
test-custom-attribute: 3.1415;
|
||||
|
||||
menu my-menu {
|
||||
submenu {
|
||||
section {
|
||||
label: "test section";
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<menu>
|
||||
<attribute name="label" translatable="true">menu label</attribute>
|
||||
<attribute name="test-custom-attribute">3.1415</attribute>
|
||||
<menu id="my-menu">
|
||||
<submenu>
|
||||
<section>
|
||||
<attribute name="label">test section</attribute>
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
menu {
|
||||
label: _("menu label");
|
||||
test-custom-attribute: "3.1415";
|
||||
|
||||
menu my-menu {
|
||||
submenu {
|
||||
section {
|
||||
label: "test section";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue