language: Remove inline menus

Inline menus didn't work anyway--menus have to be referenced by ID
(though, curiously, you *can* put the <menu> within the <property> tag
and immediately reference it--but that's a hack, and not what
blueprint-compiler was doing).
This commit is contained in:
James Westman 2022-10-14 21:16:18 -05:00
parent f1c3413dc1
commit 447785ec8c
12 changed files with 11 additions and 28 deletions

View file

@ -21,6 +21,8 @@
from .. import gir
from .imports import GtkDirective, Import
from .gtkbuilder_template import Template
from .gobject_object import Object
from .gtk_menu import menu
from .common import *
@ -32,7 +34,8 @@ class UI(AstNode):
ZeroOrMore(Import),
Until(AnyOf(
Template,
OBJECT_HOOKS,
menu,
Object,
), Eof()),
]