mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: Fix some issues with menus
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.
This commit is contained in:
parent
93f2a27e35
commit
bbad6988fa
18 changed files with 52 additions and 53 deletions
|
@ -20,6 +20,8 @@
|
|||
|
||||
from .. import gir
|
||||
from .imports import GtkDirective, Import
|
||||
from .gtk_menu import menu
|
||||
from .gobject_object import Object
|
||||
from .gtkbuilder_template import Template
|
||||
from .common import *
|
||||
|
||||
|
@ -32,7 +34,8 @@ class UI(AstNode):
|
|||
ZeroOrMore(Import),
|
||||
Until(AnyOf(
|
||||
Template,
|
||||
OBJECT_HOOKS,
|
||||
menu,
|
||||
Object,
|
||||
), Eof()),
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue