[gobject-introspection/ebassi/symbol-collision: 50/51] scanner: Use strict_node() for property name collision




commit 358632577ea4254f29abeba86630dd6ce9a2da2c
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jun 16 17:04:42 2021 +0100

    scanner: Use strict_node() for property name collision
    
    This way we only raise a warning when operating under the newly added
    strict mode.

 giscanner/introspectablepass.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py
index 9681d9b7..6a999f9f 100644
--- a/giscanner/introspectablepass.py
+++ b/giscanner/introspectablepass.py
@@ -264,7 +264,7 @@ class IntrospectablePass(object):
 
     def _property_warning(self, parent, prop, text, position=None):
         context = "property %s:%s: " % (parent.name, prop.name, )
-        message.warn_node(parent, context + text, positions=position)
+        message.strict_node(parent, context + text, positions=position)
 
     def _property_signal_collision(self, obj, prop):
         for s in obj.signals:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]