mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix issue with menus
Trying to use a menu as an object would fail because it didn't have a gir_class.
This commit is contained in:
parent
5c0fd46ebe
commit
097c7df326
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ class Menu(AstNode):
|
|||
child.emit_xml(xml)
|
||||
xml.end_tag()
|
||||
|
||||
@property
|
||||
def gir_class(self):
|
||||
return self.root.gir.namespaces["Gtk"].lookup_type("Gio.MenuModel")
|
||||
|
||||
|
||||
class MenuAttribute(BaseAttribute):
|
||||
tag_name = "attribute"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue