mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
WIP: Add gir.PartialClass
This commit is contained in:
parent
632e9d7df6
commit
6fdb12fd5d
17 changed files with 231 additions and 147 deletions
|
@ -49,6 +49,10 @@ class Child(AstNode):
|
|||
if gir_class.assignable_to(parent_type):
|
||||
break
|
||||
else:
|
||||
if gir_class.is_partial:
|
||||
# we don't know if the class implements Gtk.Buildable or not
|
||||
return
|
||||
|
||||
hints=["only Gio.ListStore or Gtk.Buildable implementors can have children"]
|
||||
if "child" in gir_class.properties:
|
||||
hints.append("did you mean to assign this object to the 'child' property?")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue