mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
validation: Disallow instantiating abstract classes
This commit is contained in:
parent
f78478bea1
commit
99e428d93c
17 changed files with 35 additions and 13 deletions
|
@ -33,7 +33,7 @@ class Menu(Object):
|
|||
|
||||
@property
|
||||
def gir_class(self):
|
||||
return self.root.gir.namespaces["Gtk"].lookup_type("Gio.MenuModel")
|
||||
return self.root.gir.namespaces["Gtk"].lookup_type("Gio.Menu")
|
||||
|
||||
|
||||
class MenuAttribute(BaseAttribute):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue