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

@ -17,10 +17,10 @@
#
# SPDX-License-Identifier: LGPL-3.0-or-later
import typing as T
from .attributes import BaseAttribute
from .gobject_object import Object, ObjectContent
from .ui import UI
from .common import *
@ -128,7 +128,7 @@ menu_contents.children = [
), "}"),
]
menu = Group(
menu: Group = Group(
Menu,
[
"menu",
@ -138,6 +138,7 @@ menu = Group(
],
)
from .ui import UI
@completer(
applies_in=[UI],