diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-06-15 17:55:41 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-06-15 17:55:41 -0400 |
commit | 20ab7b5442e0180669ff5d7ad4411c27c55f72f0 (patch) | |
tree | 93ec32dbf93de9940996846aa672d35552afca8d | |
parent | 39e031ab64633076858094b46218e371e648af6b (diff) | |
download | gobject-introspection-matthiasc/symbol-collision.tar.gz |
Don't warn for property<>getter collisionsmatthiasc/symbol-collision
These are generally harmless.
-rw-r--r-- | giscanner/introspectablepass.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py index 84c2c8e5..bf41b75e 100644 --- a/giscanner/introspectablepass.py +++ b/giscanner/introspectablepass.py @@ -257,6 +257,8 @@ class IntrospectablePass(object): if m.skip or not m.introspectable: continue if m.name == prop.name.replace('-', '_'): + if prop.attributes and prop.attributes['org.gtk.Property.get'] == m.symbol: + continue self._property_warning(obj, prop, "Properties cannot have the same name as methods") return False |