summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-06-15 17:55:41 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-06-15 17:55:41 -0400
commit20ab7b5442e0180669ff5d7ad4411c27c55f72f0 (patch)
tree93ec32dbf93de9940996846aa672d35552afca8d
parent39e031ab64633076858094b46218e371e648af6b (diff)
downloadgobject-introspection-matthiasc/symbol-collision.tar.gz
Don't warn for property<>getter collisionsmatthiasc/symbol-collision
These are generally harmless.
-rw-r--r--giscanner/introspectablepass.py2
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