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




commit f36f2a00698f0cb4450b04fd59af6412b592e609
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 0f51ada4..e51c22b1 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]