[gobject-introspection] scanner: Only add notify signal to Object, not ParamSpec etc.
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: Only add notify signal to Object, not ParamSpec etc.
- Date: Mon, 12 Sep 2011 18:12:35 +0000 (UTC)
commit a3f849e8c6548ec17bd37cb406688dfe21ca961c
Author: Colin Walters <walters verbum org>
Date: Mon Sep 12 14:10:54 2011 -0400
scanner: Only add notify signal to Object, not ParamSpec etc.
giscanner/gdumpparser.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py
index 4f3a71b..3da49e8 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':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]