summaryrefslogtreecommitdiff
path: root/giscanner/introspectablepass.py
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-04-08 20:04:03 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-07-29 11:19:01 +0100
commit6243afd9f89bd5b375868f4de21b582fa84bec55 (patch)
tree8787f88d58ebe9a24418bab7819c6939c08a5f35 /giscanner/introspectablepass.py
parent793b46cc0458da6c04a8037db6aabb10f4409c21 (diff)
downloadgobject-introspection-6243afd9f89bd5b375868f4de21b582fa84bec55.tar.gz
Add "forever" scopescope-forever
Some functions are meant to exist for the entire duration of the process, and thus have no need for a notification function because one will never be called. Fixes: #49
Diffstat (limited to 'giscanner/introspectablepass.py')
-rw-r--r--giscanner/introspectablepass.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py
index e2056b42..bb3580c6 100644
--- a/giscanner/introspectablepass.py
+++ b/giscanner/introspectablepass.py
@@ -102,7 +102,7 @@ class IntrospectablePass(object):
parent,
node,
"Missing (scope) annotation for callback without "
- "GDestroyNotify (valid: %s, %s)" % (ast.PARAM_SCOPE_CALL, ast.PARAM_SCOPE_ASYNC))
+ "GDestroyNotify (valid: %s, %s, %s)" % (ast.PARAM_SCOPE_CALL, ast.PARAM_SCOPE_ASYNC, ast.PARAM_SCOPE_FOREVER))
parent.introspectable = False
return