mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add GtkFileFilter properties
This commit is contained in:
parent
b776163cd7
commit
ebfa72d94f
13 changed files with 141 additions and 39 deletions
|
@ -64,6 +64,14 @@ class AstNode:
|
|||
else:
|
||||
return self.parent.root
|
||||
|
||||
def parent_by_type(self, type):
|
||||
if self.parent is None:
|
||||
return None
|
||||
elif isinstance(self.parent, type):
|
||||
return self.parent
|
||||
else:
|
||||
return self.parent.parent_by_type(type)
|
||||
|
||||
@lazy_prop
|
||||
def errors(self):
|
||||
return list(self._get_errors())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue