From a3f849e8c6548ec17bd37cb406688dfe21ca961c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 12 Sep 2011 14:10:54 -0400 Subject: [PATCH] scanner: Only add notify signal to Object, not ParamSpec etc. --- giscanner/gdumpparser.py | 7 ++++--- 1 file 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': -- 2.34.1