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




commit 8e76de1380228b0edb1ebfc2e901058567cf62aa
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]