summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-09-12 14:10:54 -0400
committerColin Walters <walters@verbum.org>2011-09-12 14:10:54 -0400
commita3f849e8c6548ec17bd37cb406688dfe21ca961c (patch)
tree35e3f67cba82f1533ca0bd02c0bad2e8824c7d14
parentea68ec234ad31b0a1d92adbf0c911a5dd541b647 (diff)
downloadgobject-introspection-a3f849e8c6548ec17bd37cb406688dfe21ca961c.tar.gz
scanner: Only add notify signal to Object, not ParamSpec etc.
-rw-r--r--giscanner/gdumpparser.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py
index 4f3a71b0..3da49e89 100644
--- a/giscanner/gdumpparser.py
+++ b/giscanner/gdumpparser.py
@@ -221,12 +221,13 @@ blob containing data gleaned from GObject's primitive introspection."""
gtype_name=record.ctype.replace('Spec', ''),
get_type='intern',
c_symbol_prefix=prefix)
- node.signals.append(ast.Signal('notify', ast.Return(ast.TYPE_NONE), [],
- detailed=True, when='first', no_recurse=True,
- no_hooks=True, action=True))
node.fundamental = True
if record.name == 'ParamSpec':
node.is_abstract = True
+ elif record.name == 'Object':
+ node.signals.append(ast.Signal('notify', ast.Return(ast.TYPE_NONE), [],
+ detailed=True, when='first', no_recurse=True,
+ no_hooks=True, action=True))
self._add_record_fields(node)
self._namespace.append(node, replace=True)
elif record.name == 'Variant':